I want to have a range() function that works in different bases (namely base 4).
I could do the following if the amount of digits are known:
for a in range(4):
for b in range(4):
print str(a) + str(b)
However the amount of digits needed to be generated is unknown. I'm thinking I will need recursion of some kind.