Palindrome Check
75 points · 0 solved
The first line is T. Each of the next T lines is a phrase. Ignoring everything except ASCII letters and digits, and ignoring case, print YES if it reads the same both ways, otherwise NO. A phrase with no letters or digits counts as YES.
Example 1 input
3 A man, a plan, a canal: Panama hello Racecar
Expected output
YES NO YES
main.py
Ctrl+Enter runs · Ctrl+Shift+Enter submits