Ask coding questions

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

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

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!


@CodingElf66 Not even with libraries?