go back / go searchConverting an Integer to a String in any BaseSeptember 25, 2022def to_str(n, base): convert_string = "0123456789ABCDEF" if n < base: return convert_string[n] else: return to_str(n // base, base) + convert_string[n % base] python