+ 1

What is the difference between single and double quotes

16th Jul 2018, 12:12 PM
suraj
suraj - avatar
4 Answers
+ 2
suraj There's no difference,since it's python It's only a matter of choice. However, in languages like C++, C, Java there's a huge difference.
16th Jul 2018, 12:23 PM
Dlite
Dlite - avatar
16th Jul 2018, 5:09 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
No big difference but if a string contains a single/double quote you should use double/single quote around it.
16th Jul 2018, 7:15 PM
E_E Mopho
E_E Mopho - avatar
0
Nothing. Just make sure to use the same one to open and close the string. "Hi' : Bad "Hi":Good 'Hi':Good
16th Jul 2018, 12:19 PM
Paul Grasser
Paul Grasser - avatar