CODE ONLINE PLEASE VISIT ANY OF THE FOLLOWING....

TO CHECK STRING IS PALINDROME OR NOT.

    TO CHECK STRING IS PALINDROME OR NOT


s=raw_input("enter a string:")
b=reversed(s)
if list(s)==list(b):
    print"entered string is palindrome"
else:
    print "entered string is not palindrome"



OUTPUT
--------------------------------------------------------------------------------------------------------------------------

Popular posts from this blog

INTRODUCTION TO PYTHON

Fibonacci series by using c

TO FIND ODD NUMBERS UP TO N