Consider the following dictionary, d:
d = {\'a\': 3, \'b\': 2, \'c\': 3, \'d\': 4, \'e\': 5}
I want to return the first N key:value pairs f
For Python 3 and above,To select first n Pairs
n=4 firstNpairs = {k: Diction[k] for k in list(Diction.keys())[:n]}