0
How can this statement give the output - print("print") , when it is using single quotes. It should be an error.
>>>print('print("print")') It should be an error as single quotes are used for a single character.
4 Answers
+ 10
Python doesn't give a shet to conventions really. :D
https://softwareengineering.stackexchange.com/questions/155176/single-quotes-vs-double-quotes
+ 10
@Canterville I suppose so. I'm not an expert at Python myself, so it would be better to wait and see if anyone has conflicting opinions.
0
Hatsy , so we can use single quotes at most of the places instead of double quotes in python ?