find out if array contains a value python code example
Example 1: python check if list contains value
if value in list:
#do stuff
#Also to check if it doesn't contain
if value not in list:
#do stuff
Example 2: how to check an array for a value in python
s = set(a)
if 7 in s:
# do stuff