I'm new to Python and in the process of rewriting an old Python script, I came across these lines:
value1 = 'some val 1'
value2 = 'some val 2'
some_list = #list of values
if (value1, value2) in some_list:
Does this check if value1 and value2 are in the list?
I googled how to do that and the answers show different approaches, and I didn't see any suggesting using the above code.
Is this doing something else? Should I keep it or change it?
(value1, value2)is present in the list. Not the individual values themselves.