Created
May 18, 2015 12:08
-
-
Save Chronial/e091dc5deb9234a2a7a1 to your computer and use it in GitHub Desktop.
coins.py
This file contains hidden or 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
from itertools import product | |
alice = lambda x: x | |
bob = lambda x: not x | |
print(all(alice(a) == b or bob(b) == a | |
for a, b in product([True, False], repeat=2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment