I found this code and i try to use it on python 3 and it doesn't work pls help me : list=input('racecar:')

if (list==list[::-1]):
    print ("It is a palindrome")
else:
   print("it is not palindrome")