def reverse_a_number(number):
reversed_a_number = int(str(number)[::-1])
return reversed_a_number
number = int(input("Enter a number:"))
reversed_a_num = reverse_a_number(number)
print(f"The reverse of {number} is {reversed_a_num}.")
Code Explanation:
#source code --> clcoding.com