Python Program to print reverse of the number using defined function