Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # index_base_by_sum.py ZZZ
- # can't seem to find a generic index solution anywhere... itertools is apparently not near enough for what I want
- def index_base_by_sum(index, baselenght=12, base=99):
- '''
- 000 001 010 100 101 110 111 002 012 102 112 120 121 122 222 003...
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement