0

Usage of " and '

What i dont understand here is whats the difference between the usage of " and ' in a string For example "2" or '2' Or rather "Spinoza" vs 'Spinoza'

16th Oct 2020, 4:33 PM
SweetTears
SweetTears - avatar
7 Respuestas
+ 2
Most of the time in python it doesn't matter, but language such as kotlin, java.. You may get different meaning
16th Oct 2020, 4:36 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 2
SweetTears For python? Nothing. But you can see some interesting result print("hello 'world'")
16th Oct 2020, 4:34 PM
Petr
+ 2
SweetTears don't worry. I am eating.
16th Oct 2020, 4:40 PM
Petr
+ 2
Ananiya Jemberu its ok lol that was just a joke
16th Oct 2020, 4:43 PM
SweetTears
SweetTears - avatar
+ 2
Ohh 😅😆
16th Oct 2020, 4:43 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 1
Petr my console says "starting nuclear missile engines" Should i be worried
16th Oct 2020, 4:38 PM
SweetTears
SweetTears - avatar
+ 1
With python in the console having quote, that will never happen maybe it is better if you share the code
16th Oct 2020, 4:41 PM
Ananiya Jemberu
Ananiya Jemberu - avatar