Palindrome program in python language
What is a palindrome?
A palindrome is a number or letter that remains the same even if the number and letters are inverted.
121, 11, 414, 1221, 74747 are the palindrome numbers.
MOM, DAD, MADAM, REFER are the palindrome letters.
JAVATPOINT, PROGRAM, JAVA are not the palindrome letters.
Program 1: Palindrome string
Program 2: Palindrome string program
Enter a letter: javatpoint The letter is not a palindrome Enter a letter: MADAM The letter is a palindrome
Program 3: Palindrome number program using while loop
Enter the value: 2551 This value is not a palindrome number! Enter the value: 1221 This value is a palindrome number!
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week