Posted by & filed under Programming.

I’ve started playing around with Python, and the more I do the more I like it.  Python makes it very easy to do simple, scripty type stuff, but also has the ability to do OOP if that need arises.

Here’s a quick little function to determine if a string passed is a palindrome or not.

def isPalidrome(theWord):
	return (theWord==theWord[::-1])

2 Responses to “isPalindrome function in Python”

  1. ANURAG KUMAR TIWARI

    hi ,i am doing BCA right now, i want learn python so please provide some link that help in my study of python.
    i have tried many sites but they provide tough programes which is not understand by me.
    so please help me.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *