def find_item(list, item):
return True if item in list else False
list_of_names = ["Parker", "Drew", "Cameron", "Logan", "Alex", "Chris", "Terry", "Jamie"]
print(find_item(list_of_names, "Drew"))
This is all you need to check if any element is inside your list. In our find_item function we return true if the item is in the list and false if it is not in the list.
Our print function calls our find_item function and checks our list of names for the element "Drew" and since drew is in the list of names, True is printed to the console.