Skip to content

Instantly share code, notes, and snippets.

@9999years
Created January 21, 2019 02:54
Show Gist options
  • Save 9999years/5d34aa1134de41d1dbd7e0a1bac00e12 to your computer and use it in GitHub Desktop.
Save 9999years/5d34aa1134de41d1dbd7e0a1bac00e12 to your computer and use it in GitHub Desktop.
from itertools import product
from operator import itemgetter
bools = [True, False]
def p6eq(a: bool, b: bool, c: bool) -> bool:
return (a and (b or c),
(a and b) or (a and c))
def p6():
return [list(p6eq(a, b, c))
for a, b, c
in product(bools, bools, bools)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment