Why doesn’t if x == 'A' or 'B' or 'C'
do what I expect?
- boolean
- if-statement
Testing against multiple values using boolean operators, sometimes people think booleans work like English grammar.
Why doesn’t if x == 'A' or 'B' or 'C'
do what I expect?
Testing against multiple values using boolean operators, sometimes people think booleans work like English grammar.