Palindrome program in python languageWhat is a palindrome?A palindrome is a number or letter that remains the same even if the number and letters are inverted. For example: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. Palindrome algorithm
Palindrome ProgramProgram 1: Palindrome string Output: PALINDROME ! Program 2: Palindrome string program Output: 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 Output: Enter the value: 2551 This value is not a palindrome number! Enter the value: 1221 This value is a palindrome number!
Next TopicProgram of Cumulative sum in python
|
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