What is wrong with list



These are dictionaries not lists. Dictionaries are created with the following format Key: Value.

So an example would be:

lloyd = {
         "Key 1": "value 1",
         "Key 2": "value 2",
            3   :  3,
            4   : "value 4",
         "Key 5":  5

In lloyd you used the correct key: value format for the first item but after that you just did the key. You need to add values to them.


thanks I already solved problem


For example,
In lloyd you have made the key but you had not assigned the value to it.
Hint: Read the 3rd instruction carefully.Assign the values to the keys.

"Key 1" : " value 1"


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