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'
7 Antworten
+ 2
Most of the time in python it doesn't matter, but language such as kotlin, java.. You may get different meaning
+ 2
SweetTears For python? Nothing. But you can see some interesting result
print("hello 'world'")
+ 2
SweetTears don't worry. I am eating.
+ 2
Ananiya Jemberu its ok lol that was just a joke
+ 2
Ohh 😅😆
+ 1
Petr my console says "starting nuclear missile engines"
Should i be worried
+ 1
With python in the console having quote, that will never happen maybe it is better if you share the code