how to check if the majority of list items are a specific item in python code example Example: how to check an array for a value in python s = set(a) if 7 in s: # do stuff