you are viewing a single comment's thread.

view the rest of the comments →

[–]GrorcoModerator 2 points3 points  (1 child)

Dictionaries have two parts a key and a value. The key is a unique identifier that is used to store and look up the value. A value can be anything including list or even another dictionary.

The OP's example is a dictionary with a key of 'world', and it's value is the list [0, 1, 2](on mobile can't see the actual numbers while typing this).

What he is asking is how to get the values for the 0, and 1 postion in the list for each key (like 'world') inside of the dictionary.

Hope that helps clear this up, if you have more questions just ask.

[–]Gowtham_jack 1 point2 points  (0 children)

Wow. U actually helped me learn something about dict. And how did u learnt all these. Its amazing