In operator topic


#1



https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-ipaog/0/3?curriculum_id=5370f030fed2a866a2000001#

Oups, merci de réessayer. Votre code n'affiche pas toutes les clés de mon_dict

hi thank you for your help , where is the mistake ?


Replace this line with your code. 

mon_dict={"nom":"maxime","age":31,"ville":"paris"}

for x in mon_dict:
    print (x, mon_dict[x])


#2

Hi @maximeparisestmagiqu,

Remove the parentheses from this ...

    print (x, mon_dict[x])

The problem is that since this is Python 2 rather than Python 3, the parentheses enclose the two output items into a tuple.


#3

ok sorry thank you :smile:


#4