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