What is the deference between using format() function and using these %s , %d ... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the deference between using format() function and using these %s , %d ...

print ('{0}'.format('a')) . . print ('%s' % ('b')) ?

12th May 2021, 8:19 PM
Safou Abderrahim
Safou Abderrahim - avatar
2 Answers