Home / Python Tips Generated By ChatGPT / Dictionary Methods: keys(), values(), and items() in Python Access elements of a dictionary. Source Code my_dict = {'name': 'John', 'age': 30} print(my_dict.keys()) print(my_dict.values()) print(my_dict.items())