Is it compulsory to put strings in quotations in python 3? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it compulsory to put strings in quotations in python 3?

2nd Jul 2019, 2:54 PM
Anurag aghara
Anurag aghara - avatar
2 Answers
+ 1
Do you mean this "string" as in print("Hello World")? If you do, then yes, otherwise the interpreter cannot identify what is a string and what is a variable.
2nd Jul 2019, 4:53 PM
Paul Grasser
Paul Grasser - avatar
+ 1
Thank you so much.
2nd Jul 2019, 5:02 PM
Anurag aghara
Anurag aghara - avatar