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
  • 10,069
  • 3
  • 29
  • 44

0 Answers0