Tuesday, October 4, 2016

[ More Types ] Dictionary Functions

lists , dictionary keys can be assigned to different values.

unlike lists , a new dictionary key can also be assigned a value . not just ones that already exist.

To determine whether a key is in a dictionary , you can use in and not in , just as you can for a list

A useful dictionary method is get , same as indexing , but if the key doesn't found it return None

No comments:

Post a Comment