2
Question Question 2
Dictionaries are also called ...............
- mappings
- hashes
- associative arrays
- all of these
all of these
Reason — Dictionaries are called as:
- mappings because a dictionary represents a mapping from keys to values that means each key "maps to" a value.
- hashes because the keys of a dictionary in python are generated internally by a hashing function.
- Associative arrays because it is an abstract data type that can also holds data in (key, value) pairs just like physical dictionary.