# ordered dictionary
#Regular Dictionary
d = {'apple':1, 'oranges':2, 'bananas':3}
d['grapes'] = 4
print(d)
#Output:
# {'apple': 1, 'bananas': 3, 'grapes': 4, 'oranges': 2}
#Ordered Dictionary
from collections import OrderedDict
d = OrderedDict({'apple':1, 'oranges':2, 'bananas':3})
d['grapes'] = 4
print(d)
# OrderedDict([('apple', 1), ('oranges', 2), ('bananas', 3), ('grapes', 4)])