python .format print code example
Example 1: python string format
print("My name is {0} and I am {1} years old".format(name, age))
Example 2: format on str
'{} {}'.format('one', 'two')
Example 3: python print format
print(f'I love {Geeks} from {Portal}')
Example 4: print python format
print('{} {}'.format(1, 2))
Example 5: print format python
print('{:0.3f} {:0.3f}'.format(y, z))