1# you can also use items method
2
3my_dict = {"one": 1,"two":2,"three":3,"four":4}
4
5for key,value in my_dict.items():
6 print("Key : {} , Value : {}".format(key,value))
1my_dict = {"one": 1,"two":2,"three":3,"four":4}
2
3for item in my_dict:
4 print("Key : {} , Value : {}".format(item,my_dict[item]))
5
6# it will give this result >>> Key : One , value : 1
7# Key : two , value : 2 ....