John Nagle nagle at animats.com
Fri Oct 1 04:30:35 CEST 2010

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

More information about the Python-list mailing list