Run
n = 123456 reversed = int(str(n)[::-1]) print(reversed)
Output