When do you use double quotes and single quotes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When do you use double quotes and single quotes?

5th Apr 2018, 9:11 AM
mutebi
5 Answers
+ 3
Though both are permitted in Python, but it's more wise to use " " , because it supports to use apostrophe ( ' ) with a word.For example -print("John\'s book") >>> John's book
5th Apr 2018, 10:02 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 1
It depends on programming language.
5th Apr 2018, 9:13 AM
Bartosz Pieszko
Bartosz Pieszko - avatar
+ 1
python is the language iam learning
5th Apr 2018, 9:16 AM
mutebi
+ 1
So there is no difference. /Edit I have seen that people closing one word(string) in single quotes and text in double quotes. Example: print 'Poland' print "Poland is great country!" But it is not necessary.
5th Apr 2018, 9:19 AM
Bartosz Pieszko
Bartosz Pieszko - avatar
0
you have to be smart if you want to pass and read your book to knowledge
30th Apr 2018, 7:23 PM
Kolawole Falase
Kolawole Falase - avatar