What is the deference between using format() function and using these %s , %d ... | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas