Dictionaries in Python
Dictionaries in Python are collections of data pairs, which are mutable, unordered, and indexed. While other compound data types such as lists and tuples have only value as an element, a dictionary has key-value pairs. This key-value feature makes it more efficient for looking up things. You can create a dictionary in Python as shown …