Answers for "Write a function that checks whether an element occurs in a list"

0

Write a function that checks whether an element occurs in a list

def search_for_element(element_to_find, array):
    for x in range(0, len(array)):
        if(array[x].lower() == element_to_find.lower()):
            return True
    return False
Posted by: Guest on May-31-2020

Code answers related to "Write a function that checks whether an element occurs in a list"

Python Answers by Framework

Browse Popular Code Answers by Language