how to get the first value of the dictionary python code example Example: access first element of dictionary python res = next(iter(test_dict))