String Formatting | Sololearn: Learn to code for FREE!

+1

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

+2

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

+2

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: https://realpython.com/python-f-strings/

0

Its correct