Python Programming, Python Data Structures, Oop Concepts, Learn Python, Python Interview.
You can use them to quickly store and retrieve data based on a key. # Creating a dictionary person = {'name': 'John', 'age': 30, 'gender': 'male'} # Accessing a value using a key print(person['name']) # Output: John # Adding a new key-value pair person['city'] = 'New York' # Removing a key-value