Skip to content

Instantly share code, notes, and snippets.

@antlauzon
Created March 4, 2018 07:00
Show Gist options
  • Save antlauzon/bcd431ef44954da011599c43ec84974a to your computer and use it in GitHub Desktop.
Save antlauzon/bcd431ef44954da011599c43ec84974a to your computer and use it in GitHub Desktop.
one can be sure that if there is anything true regarding existence of truth, it can be found here
# rumsfeld.py
# for the fbi
import itertools
import sys
intel = ['known', 'unknown']
detail = int(sys.argv[1]) if len(sys.argv) > 1 else 7
rumsfeldian = itertools.product
s = lambda k: print(' '.join([j for i in k for j in i]))
truth = [s([i for i in rumsfeldian(intel, repeat=e)]) for e in range(2, detail)]
truth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment