I am writing a code which takes an input from a user. If the user says yes or yea, then the code will print 'thank you'. But if the user inputs anything else, i.e. 'no', then the code outputs something else.
userinput = input('Have you entered your chosen sentences into UserSentences?: ')
userinput = str(input)
userinput.lower()
if userinput is('yes') or ('yea'):
print ('Thank you')
else:
print('please enter sentences into UserSentences')
But when I input, 'no' the code still returns 'thank you'