for a in range(10):
    for b in range(10):
        for c in range(10):
            if a + b + c <= 20:
                for d in range(10):
                    pass
A nice way to find all combinations that give a sum of N?