0

Whats the difference between string with single quote and string with dual quote

23rd Jul 2018, 9:42 PM
PAYTM GURU
PAYTM GURU - avatar
3 Answers
24th Jul 2018, 4:39 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
In Python, nothing. either work for strings. in other languages double (" ") is for Strings and single (' ') is for Chars.. good habit to get into. that said, in Python you can use them inside each other to have an output with a quote in it. for example... sentence= "The dog said 'bark bark' and it was annoying"
23rd Jul 2018, 11:38 PM
LordHill
LordHill - avatar