Create a function in Python that will take a sentence as an argument and return a boolean depending on whether or not it is a palindrome.
sentence = "Able was I ere I saw Elba"
def is_palindrome(sentence): 
    rev=(sentence.lower()).replace(" ","")
    return rev == rev[::-1]