Palindrome

Report a typo

A palindrome is a word or a text that reads the same backward as forward. Create a program that checks if the word is a palindrome.

The input format:

Word that needs to be checked. It is guaranteed that the word will be of even length.

The output format:

If the word is a palindrome, write Palindrome. Otherwise, write Not palindrome.

Sample Input 1:

noon

Sample Output 1:

Palindrome

Sample Input 2:

banana

Sample Output 2:

Not palindrome
Write a program in Python 3





___

Create a free account to access the full topic