get all values with a specific key from dictionary python code example
Example 1: how to get all the values from the dict in python
a = {1:2 , 2:3 , 3:4}
values = a.values()
Example 2: get all keys and values from dictionary python
#python 3
for k,v in dict.items():
print(k, v)