example of dictionary in python
Example 1: dictionary in python
d = {'key1':'value1','key2':'value2'}
print(d) # to print full dictionary
l=d.keys
print(l) # to print keys
b=d.values
print(b)#to print values in dictionary
Example 2: python dict access
my_dict = {'name':'Jack', 'age': 26}
my_dict['name']