-3

My code

yes = input("my input: ")
if yes == "yes" or "yEs" or "yeS" or "Yes" or "YEs" or "YES" or "yES" or "YeS" or "Y" or "y":
    print("correct")

The shell: When true:

my input: yes
correct

When false:

my input: no
correct

what is going on here!!

whackamadoodle3000
  • 6,475
  • 4
  • 23
  • 40

0 Answers0