Did you use or know about this feature before?
text = "PYTHON"
print(f"{text}")
# PYTHON
print(f"{text:#<20}")
# PYTHON##############
print(f"{text:_>20}")
# ______________PYTHON
print(f"{text:.^20}")
# .......PYTHON.......
Did you use or know about this feature before?
text = "PYTHON"
print(f"{text}")
# PYTHON
print(f"{text:#<20}")
# PYTHON##############
print(f"{text:_>20}")
# ______________PYTHON
print(f"{text:.^20}")
# .......PYTHON.......
Top comments (8)
Now 98.976% don't know
I too didn't know about this. Thanks for sharing
Amazing feature...
I didn't knew it too.
Thanks for telling.
THanks!
Nice
Nice one bruh
WoW thanks for sharing.
Wow! That is really good to add to the readability during testing phase!! Thanks for sharing!