accessing items in dictionary python code example
Example: accessing values in dictionary python
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print(dict['Name']) # Zara
print(dict['Age']) # 7
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
print(dict['Name']) # Zara
print(dict['Age']) # 7