python-reference icon indicating copy to clipboard operation
python-reference copied to clipboard

Logic operations

Open KamodaP opened this issue 9 years ago • 1 comments

There was an example order of logic operations, I believe it read 'False or not False and True' Any order of operations (at least ones I could think of) give same results. It'd be fun if there was an example that has different outcome in different operations order (not sure if that's even possible, but if I find one I'll put up a comment ;) ). Left to right: False or True and True True and True True Right to left False or not False False or True True

Not sure if it stands but try 'True or not True and False' L to R True or False and False True and False False Python order True or False and False True or True

KamodaP avatar Oct 20 '16 15:10 KamodaP

Good thinking! I'll probably swap out the example next time I update the reference guide.

justmarkham avatar Oct 30 '16 19:10 justmarkham