You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# EX 2.1 Write a function is_palindrome to check whether a string is a palindrome or not.
# A palindrome is a word that is spelled the same backward and forward, like "noon" and "redivider". Recursively, a word is a palindrome if the first and last letters are the same and the middle is a palindrome.
# Write a function is_palindrome to check whether a string is a palindrome or not, then test the function.
# If a string S is a palindrome, return True, otherwise, return False.