code: def _char2int(char):
      
      if char.isdigit():
          return int(float(char))
      if char.isupper():
          return int(char, 36)
      else:
          return 26 + int(char, 36)
docs: translate characters to integer values (upper and lower case)