Answer
n = int(input("Enter an integer: "))
nstr=str(abs(n))
nnew=int("".join(s for s in reversed(nstr)))
print("The reversed number is ",nnew)
Work Step by Step
First take an integer input from user. Then convert the integer to a string. Next revert the string, and convert this reversed string into an integer again.