get first 10 elements in dictionary code example Example: access first element of dictionary python res = next(iter(test_dict))