Palindrome phrases

Mediumisalphacomprehensionslicing· 20 XP

A word game gives bonus points for answers that read the same forwards and backwards. Players type whole phrases, so spaces, punctuation and capitals shouldn't count.

Write a function is_palindrome(phrase) that returns True if the letters of the phrase, in lower case, read the same backwards, and False otherwise.

How it's checked

Your code runs, then the check below runs and its printed output is compared with ours.

  • is_palindrome("Never odd or even!") returns True
def is_palindrome(phrase):
    ...