def item_in_list(to_check, the_list): for item in the_list: if to_check == item: return True return False