Python program to reverse a number.