Sorry, my mistake, your format string is incorrect, because you uses the 0 that is the prefix
the correct sequence is fill, allign
the correct sequence is fill, allign
# replace with space for counter in range(9,11): print(f'{counter: >2}.') print('\n-----------------\n') # replace with # for counter in range(9,11): print(f'{counter:#>2}.')
Output: 9.
10.
-----------------
#9.
10.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs