I am making a program that is like AI that responds back. I started coding this project but hit a roadblock. I wanted to take a list of words, then check if a given string is inside a list while returning a bool. My code looks something like this...
listofhellos = ['hello', 'hi', 'hey!!!']
if listofhellos.lower() == 'hello':
# This checks if string 'hello' is in listofhellos
print('Hey, how are you?')
# if it is in the list then print out a response
Thank You!