Files

18 lines
349 B
Python

# HumanEval/48
# Loki Mode Multi-Agent Solution
# Attempts: 1
# Passed: True
def is_palindrome(text: str):
"""
Checks if given string is a palindrome
>>> is_palindrome('')
True
>>> is_palindrome('aba')
True
>>> is_palindrome('aaaaa')
True
>>> is_palindrome('zbcd')
False
"""
return text == text[::-1]