The values Method in Python: Dictionary Values

The values method returns dictionary values as a sequence. Use it to iterate over dictionary values.

values()

a = {'one': 1, 'two': 2, 'three': 3}

for value in a.values():
    print(value)
1
2
3