Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

False and not True

Honestly you will NEVER see code like this in real life. You would want to put parentheses to make this very explicit. Python is really into explicit instead of implicit.

Anyway, I think the line is evaluated like this (False and (not True)) or True

not True is False, False and False is False, but False and True is True so the expression becomes True


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by thibautSep 13, 2015 06:53 AM 5 163 Sep 13, 2015 06:53 AM
Last Post: thibaut
[.NET] by BrokeosDec 24, 2013 07:09 AM 16 363 Dec 24, 2013 07:09 AM
Last Post: Brokeos
[Python] by clark.dllJun 9, 2013 10:41 PM 6 130 Jun 9, 2013 10:41 PM
Last Post: clark.dll