how to check is a variable is in an array in python code example
Example 1: if string is in array python
if item in my_list:
# whatever
Example 2: how to check an array for a value in python
s = set(a)
if 7 in s:
# do stuff
if item in my_list:
# whatever
s = set(a)
if 7 in s:
# do stuff