String Formatting | Sololearn: Learn to code for FREE!

0

String Formatting

What's the result of this code? print("{0}{1}{0}".format("abra", "cad"))

8/11/2021 6:50:45 PM

ARISTIDE ON-KEBA YAGO DERING

3 Answers

New Answer

+5

0 will be replaced by first argument to format method and 1 will be replaced by second argument to format method.

+2

You can copy this code to sololearn playground and check yourself for the result.

0

Ok merci ! C'est : abracadabra