def contains(some_list, value): """ Checks whether some_list contains the value :param some_list: (list) a list of items to seach value within :param value: (any) the value to search for in some_list :return: (bool) whether some_list contains the value """ for item in some_list: if value == item: return True return False def contains_alternate(some_list, value): """ Checks whether some_list contains the value :param some_list: (list) a list of items to seach value within :param value: (any) the value to search for in some_list :return: (bool) whether some_list contains the value """ found = False for item in some_list: if value == item: found = True return found