Ad
  • Custom User Avatar

    I absolutely agree. Thanks for the comment. Even better, I can use enumerate instead of index:

    tobase64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
    frombase64 = {v: i for i, v in enumerate(tobase64)}