code: def convert_numeric_id_to_id36(numeric_id):
      
      # base36 allows negative numbers, but reddit does not
      if not isinstance(numeric_id, six.integer_types) or numeric_id < 0:
          raise ValueError("must supply a positive int/long")
  
      # Alphabet used for base 36 conversion
      alphabet = '0123456789abcdefghijklmnopqrstuvwxyz'
      alphabet_len = len(alphabet)
  
      # Temp assign
      current_number = numeric_id
      base36 = []
  
      # Current_number must be greater than alphabet length to while/divmod
      if 0 <= current_number < alphabet_len:
          return alphabet[current_number]
  
      # Break up into chunks
      while current_number != 0:
          current_number, rem = divmod(current_number, alphabet_len)
          base36.append(alphabet[rem])
  
      # String is built in reverse order
      return ''.join(reversed(base36))
docs: Convert an integer into its base36 string representation.
  
      This method has been cleaned up slightly to improve readability. For more
      info see:
  
      https://github.com/reddit/reddit/blob/master/r2/r2/lib/utils/_utils.pyx
  
      https://www.reddit.com/r/redditdev/comments/n624n/submission_ids_question/
  
      https://en.wikipedia.org/wiki/Base36