+ 1
Why its double quoted "Hi"
while explaining print('Hello World!')... single quote was used
4 Réponses
+ 3
in python both single and double quote represent string as there is no such concept of char, but in other languages single quote represent char and double quote a string. There is also triple quote for multi line string (triple quote is treated as multi line comments if it is not assigned to any variable.).
+ 2
They're all the same. Use to tell the parser that is is a string. The only difference is one is a single quote and the other a double quote. :-)
0
gottcha
0
because Python is the coolest coding of all. All quotes are equal here bro