Source Code:
(back to article)
my_dict = {"name": "John", "age": 30, "city": "New York"} for key in my_dict: print(key, my_dict[key])
Result:
Report an issue