15.Iteration over a dict.- Observation


#1

Hi,

has anyone, noticed in the interpreter the following issue:

https://www.codecademy.com/en/courses/python-beginner-en-KAgt5/4/1?curriculum_id=4f89dab3d788890003000096

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'),

and

('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.

Thanks!


#2

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.


#3
Ok.

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

Keep calm, I'm just learning!

#4

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