Skip to content
Code ReadingIs It a Palindrome?
Break the Code

Is It a Palindrome?

Write a text (only a, b, c) for which this function gives the wrong answer.
1def is_palindrome(text):
2 if len(text) < 2:
3 return True
4 return text[0] == text[-1]