Get values from dictionary in Python

In python, values() function can be used get all values from dictionary object. And for in loop can be used along with values method to access all the values present in the dictionary.

age = {'Musk': 43, 'Bill': 61}
for val in age.values():
    print('Age '+str(val))


Output
Age 61
Age 43


Note : Dictionary does not maintain insertion order, so the output can be in different order.