xxxxxxxxxx
name = "Alice"
age = 25
balance = 1000.50
print("Name: %s, Age: %d, Balance: %.2f" % (name, age, balance))
xxxxxxxxxx
print('I love {} for "{}!"'.format('Geeks', 'Geeks'))
print('{:0.3f} {:0.3f}'.format(y, z))
xxxxxxxxxx
>>> year = 2016
>>> event = 'Referendum'
>>> f'Results of the {year} {event}'
# 'Results of the 2016 Referendum'