Logical operators and comparison cloud operators of Python

clipboard.png

clipboard.png this will throw an error

Mar.23,2021
Changing the comparative or below

to and, an or b is equivalent to not (not an and not b)


because you are not good at Boolean logic. "not (An or B)" is equivalent to "not An and not B", that is, "one is true" is equivalent to "neither is true" (rather than "at least one of the two is not true").

Menu