Difference ' with " in Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Difference ' with " in Python

Hello, what is the difference between the two, which one should we use ?! Which is better to use? ' , "

17th Jan 2022, 7:29 AM
Amirreza Karimi
Amirreza Karimi - avatar
2 Answers
+ 6
Nothing, you can use whatever you want print('Amirreza') print("Karimi")
17th Jan 2022, 7:44 AM
Simba
Simba - avatar
+ 1
print(type('hello')) print(type("hello")) Output: <class 'str'> <class 'str'> They are the same.
17th Jan 2022, 6:47 PM
Brian
Brian - avatar