thelist = ["apple", "avocado", "banana"]  inpt = input("Check an item in the list: ")  if inpt in thelist:   print(inpt, "is in the list!")

Read more of this post