Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logic operations #2

Open
KamodaP opened this issue Oct 20, 2016 · 1 comment
Open

Logic operations #2

KamodaP opened this issue Oct 20, 2016 · 1 comment

Comments

@KamodaP
Copy link

KamodaP commented Oct 20, 2016

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

@justmarkham
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants