how to check if a value is in a array pythoin code example Example: how to check an array for a value in python s = set(a) if 7 in s: # do stuff