What is the difference between single quotes and double quotes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between single quotes and double quotes?

5th Sep 2016, 1:26 AM
Alexander
4 Answers
+ 4
Well, you can actually use either of them. Generally, a single quote is used for character(char) whereas double quotes for string or word. But you can use single quotes for a string too.
5th Sep 2016, 1:56 AM
Surya Deep Mishra
Surya Deep Mishra - avatar
+ 2
From Python perspective, there is no difference at all
5th Sep 2016, 3:57 AM
Anton Cskt
Anton Cskt - avatar
+ 1
yes, you can use any as per your ease .
5th Sep 2016, 9:30 AM
Viraj Lathigara
Viraj Lathigara - avatar
0
klk
6th Sep 2016, 6:40 PM
Rylan