In pythan -in print statement where to use sigle quote and where double quotes? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

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

18th Feb 2018, 2:50 AM
Ashish Dhinwa
1 Réponse
+ 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