Home My space log
Language EN (English)

Palindromes

Python Intermediate alien ages 11-13

The problem

Write a function is_palindrome(text). It gives back True if the text reads the same forwards and backwards, and False if not. Ignore capital letters and spaces. Example: "Race car" is a palindrome.

You will practice: strings, lower case, replace, reversing with [::-1]

Mode

Press Tab to indent. Press Esc and then Tab to move on to the next button.

Your code runs in your browser. We do not receive it or save it. Python is downloaded from cdn.jsdelivr.net the first time you run it (about 10 MB).

Test results

      What your code printed