Computer Science, asked by monazzahh07, 7 months ago

Write python code to read a number and determine the number of digits in that

number. Also write the reversed number of that number.​

Answers

Answered by ItzVash003
0

Answer:

A palindrome is a word, number, or other sequence of characters which reads the same backward as forward, such as madam or racecar.

Explanation:

def rev_number(n):  s = 0  while True:    k = str(n)    if k == k[::-1]:      break    else:      m = int(k[::-1])      n += m      s += 1  return n print(rev_number(1234))print(rev_number

Similar questions