+ 2

In pythan -in print statement where to use sigle quote and where double quotes?

18th Feb 2018, 2:50 AM
Ashish Dhinwa
2 Respostas
+ 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.") ^
18th Feb 2018, 5:42 AM
LunarCoffee
LunarCoffee - avatar