- values
Does the value exist?
examples/dictionary/in_values.py
user = { 'fname': 'Foo', 'lname': 'Bar', } print('fname' in user.values()) # False print('Foo' in user.values()) # True
False True
user = { 'fname': 'Foo', 'lname': 'Bar', } print('fname' in user.values()) # False print('Foo' in user.values()) # True
False True