python function that checks if target number is in a list of numbers code example Example: how to check an array for a value in python s = set(a) if 7 in s: # do stuff