Source code for kyu_8.is_it_a_palindrome.is_palindrome

"""
Solution for -> Is it a palindrome?.

Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""


[docs] def is_palindrome(s: str) -> bool: """ Palindrome testing function. Write function isPalindrome that checks if a given string (case-insensitive) is a palindrome. :param s: str :return: bool """ s = s.lower() return s == s[::-1]