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
from itertools import (permutations, | |
combinations_with_replacement, product) | |
from toolz import mapcat | |
from typing import Tuple, Generator, List | |
from operator import add, sub, mul, truediv | |
ops = {'+': add, '-': sub, '*': mul, '/': truediv, '^': pow} | |
Numbers = Tuple[int] | |
Equations = Generator[Numbers, None, None] |
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
a | |
ad | |
agar | |
air | |
alfalfa | |
alga | |
alpaca | |
altar | |
am | |
an |
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
a | |
air | |
an | |
Ara | |
as | |
cad | |
char | |
den | |
do | |
don |