To check a string is palidrome or not

k=raw_input('Enter a string:  ')

if k==k[::-1]:
    print 'String is palidrome'
else:
    print 'String is not palidrome'

No comments: