What if we use double quotes instead of single? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What if we use double quotes instead of single?

I was interpreting using python 3.5 it works fine for me any idea?

1st Jan 2017, 5:14 PM
Rohit Gupta
Rohit Gupta - avatar
2 Answers
+ 1
It just means you can use apostrophes (') without escaping them. text1 = "I'm done" text2 = 'I\'m done!' O o _°
1st Jan 2017, 10:28 PM
Green Square Dermatology
Green Square Dermatology - avatar
0
But then, you can't use double quotes inside your strings... No performance change (vs. PHP), just aesthetics...
2nd Jan 2017, 12:15 AM
Amaras A
Amaras A - avatar