0

What is the difference between " and ' in python

The output is same , so it's my curiosity to ask about it

28th Jan 2022, 9:20 PM
Garvit
2 Answers
+ 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.
28th Jan 2022, 9:45 PM
Mafdi
Mafdi - avatar
+ 2
There is none, you use both
28th Jan 2022, 9:33 PM
Lisa
Lisa - avatar