Перевод натурального числа в другую систему счисления с основанием
2 <= base <= 36
def change_base(num, base):
    if num == 0: return '0'
    result = ''
    while num != 0:
        result = str(num % base) + result
        num //= base
    return result
The work you do while you procrastinate is probably the work you should be doing for the rest of your life.
Made on
Tilda