Skip to content

Strings · routine

Palindrome

Write is_palindrome(text): True if it reads the same backwards, ignoring spaces and upper/lower case. "Never odd or even" is one.

Run adds print(is_palindrome("Never odd or even")) after your code, to try it.

Stuck on the idea rather than the code? The Strings lesson walks through it.