what is the difference between single and double quotation? | 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 and double quotation?

difference between single and double quotation..

10th Jul 2018, 4:00 PM
Swapnajit patra
4 Answers
+ 2
you can use both for strings but if you would want to use, let's say, a single quotation within a string, you should surround it with double quotations.. print("it's ") output: it's
10th Jul 2018, 4:07 PM
davy hermans
davy hermans - avatar
+ 2
Hello, Swapnajit patra ! There is almost no difference between these types of quotes, but both are used. This allows, for example, to avoid countless screening in a script.
10th Jul 2018, 4:14 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 1
Depends on the language
10th Jul 2018, 9:47 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
11th Jul 2018, 10:36 AM
Maninder $ingh
Maninder $ingh - avatar