Ask coding questions

← Back to all posts
Trying to center text in the console no matter the size of the console in python
Xag803

I have been using Center() to center text but this does not center if the console size changes, is there a way to make it centered even if the console is a different size?

Answered by CodingElf66 [earned 5 cycles]
View Answer
Comments
hotnewtop
CodingElf66

Actually you can't do it, since the function .center by default is the Replit Python Window tab, so you can't really do anything about that, unless if you want to find the function and go re-code it.

I hope you can mark this as answered, thanks!

Xag803

@CodingElf66 Not even with libraries?