PythiloEasy · 15 min · Task 5 of 20 · progress kept in this browser

Palindrome through the noise

A phrase counts as a palindrome here if it reads the same both ways after ignoring case and every character other than letters and digits.

is_clean_palindrome("No lemon, no melon")
# True
is_clean_palindrome("ab")
# False
Your task

Write is_clean_palindrome(text) using two pointers, returning True if the letters and digits of text read the same in both directions, ignoring case.