def combos(xs, ys):
    return [(x + y) for x in xs for y in ys]
digits = ['0', '1']
for c in combos(digits, combos(digits, digits)):
    pass
I want a program that writes every possible combination to a different line of a text file