Write a function that detects if an inputted string is a palindrome or not. It should return a boolean result.
// JavaScript
isPalindrome("mom") // returns true
isPalindrome("Mom") // returns false
isPalindrome("rats live on no evil star") // returns true
isPalindrome("rats live on no evil star.") // returns false
//Py
def is_palindrome("mom"): # returns True
def is_palindrome("Mom"): # returns False
def is_palindrome("rats live on no evil star"): # returns True
def is_palindrome("rats live on no evil star."): # returns False