On 9/30/2010 7:12 PM, Geo_subodh wrote:
please send me the simple python code that uses input number greater
than3 digits(>3 digits) and  checks whether the number is palindrome
or not.

def ispalin(s) :
    s = str(s)
    n = len(s) / 2
    return(s[:n] == s[::-1][:n])

Please use a message subject that describes the content of the message.


                                        John Nagle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to