Skip to content

Instantly share code, notes, and snippets.

@aheadlead

aheadlead/fu.py Secret

Created September 24, 2015 05:20
Show Gist options
  • Save aheadlead/07cd45db844ca8052933 to your computer and use it in GitHub Desktop.
Save aheadlead/07cd45db844ca8052933 to your computer and use it in GitHub Desktop.
s = [0, 1]
for a in s:
for b in s:
for c in s:
for d in s:
if sum([a, b, c, d]) == 3 and \
(a == 0 or b == 0) and \
(b == 0 or a == 0) and \
(c == 0 or a == c) and \
(d == 0 or c == 1):
print a, b, c, d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment