In Python is it possible to comparison-equate a variable to a List, Tupple, or 
Set and have it return True if the contents of the variable matches an element 
in the List, Tupple, or Set.

E.g.

x = "apple"

x-list = ["apple", "banana", "peach"]

If x == x-list:
    print('Comparison is True')
else:
    print('Comparison is False')

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to