+ 11
why no error?
a = ("hh""jj") print(a) Should be syntax error but it works
5 Answers
+ 9
Here I found this interesting question :
https://stackoverflow.com/questions/18842779/string-concatenation-without-operator
+ 4
ok... we know it similiar from mathematical expressions:
a = 3
b=2
ab = 6
so a missing operator in this field is the multiplicator
In Python a missing operator between two strings is solved to default operator +.
There was a pep to remove this feature but it was rejected by Guido.
+ 4
I believe it was a carry over from C. It will only work with literals at compile time and not for run time strings.
+ 3
https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation
+ 3
ChaoticDawg could be the root reasonđ