Complete the following Python function: ```python def is_pa...
Prompt
Complete the following Python function: ```python 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 """ ```
Answer guidance
Canonical solution (function body): for i in range(len(text)): if text[i] != text[len(text) - 1 - i]: return False return True