Double quotes and single quotes



I've noticed that on Lesson 13 and on Lesson 14, on description of a list and then a dictionary are used double quotes and on the editor side are used single quotes:


More than that on Lesson 10, are used only single quotes to describe a dictionary:

But why? Why is this alternation? As I noticed that both double quotes and single quotes have the same role in Python.


You observe correctly. The only thing that matters is that the closing quote matches the opening quote. There is no other general rule.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.