+ 2
In pythan -in print statement where to use sigle quote and where double quotes?
1 ответ
+ 3
I suggest using ' when you have " in your string:
print('He said, "stop talking!" so I did.')
^ ^
And " when you have ' in your string:
print("She said that I shouldn't stop talking.")
^