What is the diference of " " and ' ' ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the diference of " " and ' ' ?

8th Feb 2017, 12:19 PM
makis stavridis
makis stavridis - avatar
6 Answers
+ 6
... and in single quotes you can use double quote inside a string mystring = 'don\'t worry about "quotes"...' As you can guess, in each you can escape characters ^^
8th Feb 2017, 12:34 PM
visph
visph - avatar
+ 5
to my knowledge, there isn't any. I could be wrong though
8th Feb 2017, 12:24 PM
Ahri Fox
Ahri Fox - avatar
+ 3
None... in Python.
8th Feb 2017, 12:23 PM
visph
visph - avatar
+ 2
@Kenyatta Madison wrote: " This was asked and answered already https://www.sololearn.com/Discuss/192760 " As almost question asked... but it's good to be said, to not forgot that a minimal search effort is useful and appreciate, even if SoloLearn Q&A Discussions features for that purpose are absolutly lackful :P
8th Feb 2017, 3:21 PM
visph
visph - avatar
+ 1
Both are used for strings and with double quotes you can use single quote inside a string mystring = "Don't worry about apostrophes"
8th Feb 2017, 12:30 PM
Rossano Praderi
Rossano Praderi - avatar
- 4
" " is a string, ' ' is a character
8th Feb 2017, 12:24 PM
Aaron
Aaron - avatar