- 1
Help!!
what's the difference between " and '?
3 Antworten
+ 4
Sorry guys
for Inconvenience!
+ 3
" " ---- used with String
' ' ---- used with char
- 1
Mayank Noooooo. You are talking about Java. The tag says Python.
Darya In Python there is no difference between " and '. You can use them interchangeably. But sometimes it is helpful when you need to put stuff in quotes. Say, you want to print Darya said "hi". You could write in Python:
print('Darya said "hi".') You can put " between ' ' and ' between " ".
All that said, this is a duplicate question that has already been answered multiple times. I see you are new on SoloLearn. Welcome! 😊
One of the things to do before posting questions on the board is to do a search in the search bar to see if the question has already been asked and answered. Alternatively you can Google it and add sololearn. The sololearn discussions related to your question will appear in the search results.
Again, welcome to SL!