String Formatting | Sololearn: Learn to code for FREE!


String Formatting

Question - print("{0}{1}{0}".format("abra", "cad")). Can anybody help me with this? What's the output?

8/5/2021 4:59:33 AM

Srujan Kulkarni

3 Answers

New Answer


Srujan Kulkarni How about revisiting the string format module in the SoloLearn Python Core course here?


Srujan Kulkarni , ▪︎you can get the output by just running the code ▪︎when posting a question, please also specify the programming language in a tag => invest some time in reading this tutorial and learn more about f-string:


Its correct