Skip to content

Instantly share code, notes, and snippets.

import itertools
ops = ["sub", "mul", "div"]
words = [
["pigs", "sand", "mail", "date", "head"],
["clam", "peak", "heat", "joya", "well"],
["toad", "card", "will", "tape", "legs"],
["tree", "road", "maid", "slab", "rock"],
["hand", "vase", "safe", "clay", "toes"],
]