Created
March 30, 2014 08:46
-
-
Save xcombelle/9869757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> for age,name in itertools.product((21,22,23),("jim","toto")): | |
... print (age,name, (not (age > 22 or name == "jim")) == (age <=22 and name !="jim")) | |
... | |
21 jim True | |
21 toto True | |
22 jim True | |
22 toto True | |
23 jim True | |
23 toto True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment