Loading...
Loading...
Loading...
A ticket code is valid when it reads the same from left to right and from right to left, ignoring the difference between capital and small letters. Print YES for a valid code and NO otherwise.
Example
Input
Level
Output
YES
Lowercased, it is level, the same both ways.
Try the problem first. Open one hint at a time.
Make the whole code lowercase first.
A reversed copy of a string is text[::-1].
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor