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

What is difference between ' ' and " "?

4th Oct 2016, 5:58 PM
rishabh
2 Answers
+ 4
" " is used for strings, ' ' for characters. "bye", "hello", "a", "b" are strings. 'a', 'b' are characters.
4th Oct 2016, 7:01 PM
marcram
0
to add onto Marcram, since ' ' is a char, if you try to do '' you will get an error, while "" won't.
5th Oct 2016, 3:22 AM
dragonbro1015
dragonbro1015 - avatar