I need help with my Palindrome code
For some reason, I cannot seem to convert the text into lower case letters and I cannot seem to ignore spaces and commas and periods and so on.
Here is my code
def is_palindrome(user_input):
i = 0
result = True
while i <= len(user_input) -1 and result == True:
while result == True:
user_input = [user_input.lower() and user_input.isalpha()]
if user_input[i] == user_input[-1 - i]:
result = True
else:
result = False
i += 1
return result