Sobes.tech
Intern — Middle

Determining whether a string is a palindrome

livecode

Task condition

Implement a function that takes a string consisting only of lowercase letters of the English alphabet, and returns a boolean indicating whether the string reads the same from left to right and from right to left.

def is_palindrome(s: str) -> bool:
    # your code here
    pass