Как изменить число в Python

num = 123456
print(str(num)[::-1])
sahil bhatt