I want to fill an entire line in the screen with *
characters and stop just before break line?
Something like this
********** MENU **********
Thanks
>>> print(' MENU '.center(80, '*'))
************************************* MENU *************************************
Note that 80 is not the actual width of the screen. It's just an arbitrary number I choose because it's the usual size of the console window on Windows. If you want to determine the actual screen width you can try these examples for Linux and Windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With