When your functions take the same arguments, consider using a class: counter-examples
in which we solve the day problem from Advent of Code , Conway Cubes, in a generic way, focusing on testing, refactoring, and idiomatic Python, in a way that helps you translate those skills to your regular, non puzzle coding.