+ 1

what does format do in python3??

5th Jan 2018, 3:04 AM
Roshan Me
Roshan Me - avatar
2 Answers
+ 2
format helps you to append things in your strings in between any place of the string for e.g x=("he is a good {}".format(boy)) this format will append boy in the place where {} is there inside this....
5th Jan 2018, 3:55 AM
Garv Nanwani
Garv Nanwani - avatar
0
format: eraises the content.
10th Jan 2018, 1:13 PM
Achyuta Reddy
Achyuta Reddy - avatar