n=raw_input("enter the string")
if str(n) == str(n)[::-1]:
    print "true"
else
    print "false"
  File "<ipython-input-1-0079b2b3b3d7>", line 3
    print "true"
               ^
SyntaxError: Missing parentheses in call to 'print'
n=raw_input("enter the string")
if str(n) == str(n)[::-1]:
    print("true")
else
    print("false")
  File "<ipython-input-2-03090260474f>", line 4
    else
        ^
SyntaxError: invalid syntax
n=raw_input("enter the string")
if str(n) == str(n)[::-1]:
    print("true")
else:
    print("false")
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-8b3da47d1ef1> in <module>()
----> 1 n=raw_input("enter the string")
      2 if str(n) == str(n)[::-1]:
      3     print("true")
      4 else:
      5     print("false")

NameError: name 'raw_input' is not defined