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