+ 1
In chapter "strings" in the first part of it has a code in which the string is written in single inverted coma
in description it's written that we should write string in double inverted coma but in code it's opposite >>> 'Always look on the bright side of life' 'Always look on the bright side of life'
7 Antworten
+ 2
they were just tryna show us that the compiler accepts strings in both ways, whether using double quotes or single quotes, but not both at the same time. e.g:
a = ' this is me '(correct)
a = "this is me"(correct)
a = "this is me '(wrong)
+ 1
but three single quotes represent a doc string( a comment written on multiple lines
+ 1
my pleasure
0
we can use double quotes as many as we want?
0
yeah
0
thanks
0
I see