How to get other itertools combinations in Python?

You have only two of each number and letter. You need three entries of 0 to get (0, 0, 0)

You probably want to have just all_columns = ['0', 'z', '-z'] then use combinations with replacement.

1 Like