So I want to count up in binary but keep the leading zeros in example to count to 6 it'd look like this:
0000
0001
0010
0011
0100
0101
0110
I have this code but it only goes up to a certain amount specified by repeat=4 and i need it to go until it finds a specific number.
for i in itertools.product([0,1],repeat=4):
x += 1
print i
if binNum == i:
print "Found after ", x, "attempts"
break