Skip to content
CampusEduX

Palindrome Checker

Easypython
Learn the Concept: Strings

Check whether a given string reads the same forwards and backwards (a palindrome), ignoring letter case.

Approach: compare the lower-cased string to its own reverse using slicing (s[::-1]).

Input: One line: a word or phrase.

Output: One line: <original> is a palindrome or <original> is not a palindrome — using the original text's casing in the message, but comparing case-insensitively.

Related Problems

Input (stdin)

Output

Run your code to see output here...