0

Can some one please explain me why the answer to this question is false. I'm new to python and have fair understanding of Java.

Adam Smith
  • 52,157
  • 12
  • 73
  • 112
Wasit
  • 1
  • 1
  • The end result is basically just the value of `not 33`. See the duplicate. – deceze Aug 31 '20 at 06:13
  • Break the units down to whether or not they are "truthy." "Truthy" things are not "falsey," and "falsey" things are `0`, `""`, `False`, and empty sequences. In this case `not 33` is "falsey" (because `33` is truthy and `not` inverts it) and anything `... and False` is false. – Adam Smith Aug 31 '20 at 06:13
  • Anything non-0 is evaluated as True in a boolean context, so you have (effectively) "(True or True)" simplifying to True. and a "not True", which is False, making your entrie expression "True and False", which yields False. I hope that's clear, if not, feel free to leave a comment. – hd1 Aug 31 '20 at 06:22

0 Answers0