← back to unit
Medium
# puzzle gauntlet medium
The Messy Mirror
Real sentences hide their mirrors under spaces, punctuation, and SHOUTING. Clean first, check second. 🧹
You get a sentence. Keep only the letters, lowercase them, then mirror-check. Print mirror or not a mirror.
Example:
Input: sentence = "No lemon, no melon!"
Output: mirror
Cleaning to lowercase letters only gives "nolemonnomelon", which reads the same forwards and backwards.
💡 need a hint?
pg-messy-mirror.py🔒 given lines are locked — write your code in between
loading...