Dec-06-2017, 04:47 PM
In a simple print statement using f strings or the .format() method, you can specify how much padding should be applied to each variable.
For example,
For example,
Output:>>> price = 345.67
>>> print(f'£{price:*>10.2f}')
£****345.67
See the latter part of this article on Digital Ocean for more information.
I am trying to help you, really, even if it doesn't always seem that way