I've tried to output an integer in double quotes but it's not going, what could be the problem? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

I've tried to output an integer in double quotes but it's not going, what could be the problem?

Example; print("let these be example: "36"")

15th Jan 2022, 11:04 PM
Nchinda Boris
3 Antworten
+ 1
Yet another way is to use the backslash to escape the double quote so it is not interpreted as a string delimiter. print("example: \"36\"")
16th Jan 2022, 12:19 AM
Brian
Brian - avatar
0
# Hi! Try: print('let these be example: 36') # or print("let these be example:", 36) # or if you want to print out the quotes: print('let these be example: "36"')
15th Jan 2022, 11:24 PM
Per Bratthammar
Per Bratthammar - avatar
0
Thank you guys I've solved the problem
16th Jan 2022, 4:34 PM
Nchinda Boris