Accept a number as an input and check whether the given number is palindrome or not if it is a palindrome number print the number on the screen if it is not a palindrome number reverse that number and add it to previous number repeat this until will get a palindrome number and print that palindrome number on the screen
input: 127
output: 848
I will be thank full if any one can solve this:
n = int(input())
if str(n) == str(n)[::-1]:
print(str(n)[::-1],"is a palindrome")
else:
what should i write in else condition