how to get key in dictionary python one by one code example Example: access first element of dictionary python res = next(iter(test_dict))