Deviopath › Python

Palindrome Check

Easy · Strings

A palindrome reads the same forwards and backwards, like "level". Compare a string with its reverse (text[::-1]), and lowercase it first so that capital letters do not matter.

Write a function is_palindrome(text) that returns True if the text is a palindrome, ignoring case.

Next: Initials from a Name