← Problem book: Python
Lesson 76 of 96 · 10 XP
Palindrome
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given one word of lowercase Latin letters (no longer than 100 characters).
Print YES if the word reads the same in both directions, otherwise NO.
Example
Input:
level
Output:
YES
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.