Answers for "how to print using the printf operator in python"

2

python text fromatting rows

table_data = [
    ['a', 'b', 'c'],
    ['aaaaaaaaaa', 'b', 'c'], 
    ['a', 'bbbbbbbbbb', 'c']
]
for row in table_data:
    print("{: >20} {: >20} {: >20}".format(*row))
Posted by: Guest on November-17-2019
1

print python format

print('{} {}'.format(1, 2))
Posted by: Guest on May-04-2020

Code answers related to "how to print using the printf operator in python"

Python Answers by Framework

Browse Popular Code Answers by Language