Palindrome Number

Check Palindrome Number, program code explanation, and output.

Hey, internet mates here we are going to make a python program to search for the palindrome number in the given list.

Program code:-
li=[]
print("Enter Numbers:")
for x in range(10):
    enter=int(input(":-"))
    li.append(enter)
palindrome=[]
for y in li:
    m=y
    rev=0
    while y>0:
        w=y%10
        rev=rev*10+w
        y=y//10
    if rev==m:
        palindrome.append(m)
print("PALLINDROME NUMBERS ARE:-",palindrome)

Leave a Comment

Your email address will not be published. Required fields are marked *