format python with two {{ code example
Example 1: python string format
print("My name is {0} and I am {1} years old".format(name, age))
Example 2: print python format
print('{} {}'.format(1, 2))
Example 3: print python format
print('{} {}'.format('one', 'two'))