15.Iteration over a dict.- Observation



has anyone, noticed in the interpreter the following issue:


that the keys inside the tuples from the dict are printed :

[("Monty Python's Life of Brian", 'Good'), ("Monty Python's Meaning of Life", 'Okay'),


('Monty Python and the Holy Grail', 'Great')] ?

Why for the first two is used the double quote and then the single quote ?

As I noticed double quote and the single quote have the same role.



You are correct, they do have the same function. I'm guessing whoever made the exercise just typed it that way for umm... artistic reasons.


If Codecademy needs another Python addict learner as "tester", don't hesitate to contact me.:grinning:

Keep calm, I'm just learning!


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