python dictionary get first 10 code example
Example 1: get n items from dictionary python
list(islice(d.iteritems(), n))
'Update for Python 3.6
list(islice(d.items(), n))
Example 2: access first element of dictionary python
res = next(iter(test_dict))