0
What is the difference between " and ' in python
The output is same , so it's my curiosity to ask about it
2 Réponses
+ 5
They are the same in Python.
You can use double quotes if you want to use the single quotes inside the string, or vice versa.
print("that's awesome")
or you can use the backward slash
print('that\'s awesome')
In some other languages like C language, the single quotes are used for a single character, and the double quotes are used for strings.
+ 2
There is none, you use both