I want to print different variable in one line with specific alignment. However, str.format print same string.
Here is the code what i did and output
>>> print("{0:^20} {0:^20} {0:^40}\n".format('chkitem', 'Count', 'Coordinate'))
chkitem chkitem chkitem
I want to print
>>> print("{0:^20} {0:^20} {0:^40}\n".format('chkitem', 'Count', 'Coordinate'))
chkitem Count Coordinate
What is the problem?