Advertisement
here2share

# index_base_by_sum.py

Jun 4th, 2022
2,760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 23.21 KB | None | 0 0
  1. # index_base_by_sum.py ZZZ
  2.  
  3. # can't seem to find a generic index solution anywhere... itertools is apparently not near enough for what I want
  4.  
  5. def index_base_by_sum(index, baselenght=12, base=99):
  6. '''
  7. 000 001 010 100 101 110 111 002 012 102 112 120 121 122 222 003...
  8. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement