My goal is to come up with an array of all possible bit combinations of length n. For example, if n = 3, the target answer set should look like
000,
001,
010,
100,
011,
101,
110,
111
I've found the algorithmic solution, by I have completely no experience in iterators and C++ in general. Could someone give a hint how to rewrite the next function in python?