A palindrome is a word or a phrase that is the same when read both forward and backward. examples are: "bob," "sees," or "never odd or even" (ignoring spaces). write a program whose input is a word or phrase, and that outputs whether the input is a palindrome.
this the code that i put in it all worked until the phrase "never odd or even" gets tested
here is the code that i entered
name = str(input())
name = name.replace(' ', '')
new_name = name
new_name = new_name[::-1]
if name == new_name:
print('{} is a palindrome'.format(name))
else:
print('{} is not a palindrome'.format(name))
#and this is my output
neveroddoreven is a palindrome
#it needs to be
never odd or even is a palindrome