def int_to_str(num):
is_negative = False
if num:
num, is_negative = -num, True
s = []
while True:
s.append(chr(ord('0') + num % 10))
num //= 10
if num == 0:
break
return ('-' if is_negative else '') + ''.join(reversed(s))
num = input("Enter any numeric value: ")
print(int_to_str(num))
Подробнее здесь: https://stackoverflow.com/questions/444 ... n-python-3
Мобильная версия