0

What is the difference between print(" hello " + " world "). And print(" hello " + 'world' )

4th Feb 2019, 11:39 AM
ansh
ansh - avatar
1 ответ
+ 1
In Python the main difference between single quote and double quote strings is that in single quote strings double quotes are automatically escaped and in double quote strings single quote strings are automatically escaped. Correct syntax strings: " ' " ' " ' " \" " ' \' ' Error syntax strings: " " " ' ' '
4th Feb 2019, 12:37 PM
Seb TheS
Seb TheS - avatar