python programming reverse number

python programming reverse number

Reverse of number in Python

=> in this we have to find the reverse 
of the given number 
example:number=12345 then output is
number_2=54321

source code

x=int(input("enter the number:"))
r=reverse(x)
print("Number :",x)
print("Reverse :",r)

python programming reverse number

Leave a Comment

Your email address will not be published. Required fields are marked *