Write a Python function that returns the integer obtained by reversing the digits of the given integer


Topic: Write a Python function that returns the integer obtained by reversing the digits of the given integer

Solution

def reverse(n):
    s=str(n) 
    p=s[::-1]
    return p 



List all Python Programs