String Formatting | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

String Formatting

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

5th Aug 2021, 4:59 AM
Srujan Kulkarni
Srujan Kulkarni - avatar
3 Respostas
+ 2
Srujan Kulkarni How about revisiting the string format module in the SoloLearn Python Core course here?
5th Aug 2021, 6:13 AM
Calvin Thomas
Calvin Thomas - avatar
+ 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/JUMP_LINK__&&__python__&&__JUMP_LINK-f-strings/
5th Aug 2021, 10:39 AM
Lothar
Lothar - avatar
0
Its correct
5th Aug 2021, 5:02 AM
Eashan Morajkar
Eashan Morajkar - avatar