1print('I love {} for "{}!"'.format('Geeks', 'Geeks'))
2print('{:0.3f} {:0.3f}'.format(y, z))
1print("Geeks : %2d, Portal : %5.2f" % (1, 05.333))
2
3# print integer value
4print("Total students : %3d, Boys : %2d" % (240, 120))
5
6# print octal value
7print("%7.3o" % (25))
8
9# print exponential value
10print("%10.3E" % (356.08977))