Video 6: Lists Tuples Dictionaries (page 11 of 14) |
Dictionaries are mutable but cannot contain duplicate keys. Dictionary items are entered in key:value pairs, which means that they may be referred to by using the key name. We may do this using hard braces [] or get() with the keys. Note that with both of these methods, we enter the keys and not the index position.
We may also change the value associated with a key.