I'm trying to get the user input and check whether it has 'heads' or 'tails' in it using if statement. But I end up getting the same output.
user_input = input('Heads? or Tails? \n')
if 'HEADS' or 'TAILS' in user_input.upper():
print ('you have chosen', user_input)
else:
print ('wrong!')
Input:
random text
Expected output:
wrong!
Output that I get:
you have chosen random text