- values
values
- Values are returned in the same random order as the keys are.
examples/dictionary/values.py
user = { 'fname': 'Foo', 'lname': 'Bar', 'workplace': 'Bar', } print(user) # {'fname': 'Foo', 'lname': 'Bar', 'workplace': 'Bar'} print(user.keys()) # dict_keys(['fname', 'lname', 'workplace']) print(user.values()) # dict_values(['Foo', 'Bar', 'Bar'])