store and retrieve key value in python code example
Example 1: get all keys and values from dictionary python
#python 3
for k,v in dict.items():
print(k, v)
Example 2: python key value pair list
student = {"first_name": "Henry", "last_name": "Smith", "age": 20} # key: value
print(student["first_name"])
>>> Henry