I've seen many solutions of this type of problem but I can't really find one that I'm looking for.
For example:
text = ['hi', 'hello', 'hey']
user_input = input('Enter something: ')
for word in user_input:
    if word in text:
        print('Hi')
    else:
        print('Bye')
If the user_input was "hi there", it would give me back
Bye
Bye
Bye
Bye
Bye
Bye
Bye
Bye
How can I check to see if at least one of the words in user_input is in the list (text)?



wordloops over the characters of the stringuser_input.user_inputinto words.