- 1

Help!!

what's the difference between " and '?

22nd May 2018, 6:39 PM
Darya Delieva
Darya Delieva - avatar
3 Antworten
+ 4
Sorry guys for Inconvenience!
23rd May 2018, 12:57 AM
Mayank Rampuriya
Mayank Rampuriya - avatar
+ 3
" " ---- used with String ' ' ---- used with char
22nd May 2018, 6:49 PM
Mayank Rampuriya
Mayank Rampuriya - avatar
- 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!
22nd May 2018, 7:53 PM
cyk
cyk - avatar