1d = {'key1':'value1','key2':'value2'}
2print(d) # to print full dictionary
3l=d.keys
4print(l) # to print keys
5b=d.values
6print(b)#to print values in dictionary
1# Dictionaries in Python
2
3ages = {"John": 43, "Bob": 24, "Ruth": 76} # Marked by { at beginning and a } at end
4
5# ^^^ Has sets of keys and values, like the 'John' and 43 set. These two values must be seperated by a colon
6
7# ^^^ Sets of values seperated by commas.
8
9