print first 10 items in dictionary python code example
Example 1: print first dictionary keys python
first_key = list(my_dict.keys())[0]
print(first_key)
Example 2: get n items from dictionary python
list(islice(d.iteritems(), n))
'Update for Python 3.6
list(islice(d.items(), n))