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