The Format method
The format method
Sometimes we may want to construct strings from other information as well. This is where the format() method is useful.
age = 21
name = 'Abhishek'
print('{0} was {1} years old when he wrote this course'.format(name, age))
print('My...
techwriter.hashnode.dev3 min read