Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fancier Output Formatting in python

>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678}
>>> for name, phone in table.items():
...     print(f'{name:10} ==> {phone:10d}')
...
Sjoerd     ==>       4127
Jack       ==>       4098
Dcab       ==>       7678
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Fancier #Output #Formatting #python
ADD COMMENT
Topic
Name
3+8 =