Hello Friends.๐
In Our Previous Blog, We have Learned the Basics of Python Programming Language & 2 Digit Swapping Program.
"Now In this Blog, We will learn to make Palindrom Number Programs in Python Programming Language."
Python Program To Check Number is Palindrom Or Not a Palindrom.
Program
no=int(input("Enter Any Number = \t"))
temp=no
sum=0
while no>0:
r=no%10
sum=sum*10+r
no=int(no/10)
if temp==sum:
print("Palindrom Number = \t",sum)
else:
print("Not a Palindrom Number = \t",sum)
Output
Enter Any Number = 1219
Not a Palindrom Number = 9121
Enter Any Number = 171
Palindrom Number = 171
If You want to Know about Information Technology or It Technology, Then Click on the Link given above.
If you want to see our privacy policy then you can click on this link.
Hope, You Enjoy this Our Blogs on Python Language.๐
Great dude
ReplyDelete