Hi,

Here is my code to create a dictionary.

First you have to create your dictionary by using the dict( ) method.

So you can see that it’s not a good way to use dict as a variable because this word is reserved.

Then you can match a key and a value. A dictionary is different that a list you can associate as you want whereas with a list you can only associate an integer to a value.

Moreover, you can see that the order is not respect in the dictionary because the integer means nothing with an order.

Have a good day !

Capture d’écran 2015-11-03 à 11.54.40

CC BY 4.0 MASTERY 27 by aureliemartinette is licensed under a Creative Commons Attribution 4.0 International License.