0
while True:
    question = input('Enter the secret word: ')

    if question in ['happy', 'Happy', 'HAPPY']:
        print('Great Job!')

    else:
       print('Try again!') 

This code works but what if the user types HaPpY. My computer won't recognize and will say Try again! How do I prevent this?

sahasrara62
  • 7,680
  • 2
  • 24
  • 37

0 Answers0