I would like to know how to do an equivalent of the range function in python, but with the ability to specify the base number. For example:
countUp(start=0, end=1010, base=2)
countUp(start=0, end=101, base=3)
countUp(start=0, end=22, base=4)
Example output for base 2 counting:
[0, 1, 10, 11, 100, ...]
Is there a function I'm missing that does this? Or what could I do instead?