004 - Palindrome checker

004 - Palindrome checker#

Write a function that checks if a given string is a palindrome. A palindrome is a word that reads the same backward as forward.

def is_palindrome(s):
    # implementation
    return [True or False]

# Test cases
print(is_palindrome("racecar"))  # Expected output: True
print(is_palindrome("hello"))    # Expected output: False