how to take the only first item from a dictionary python code example Example: print first dictionary keys python first_key = list(my_dict.keys())[0] print(first_key)