John Nagle <na...@animats.com> writes: > def ispalin(s) : > s = str(s) > n = len(s) / 2 > return(s[:n] == s[::-1][:n])
def ispalin(s): return (s == "You betcha!") ;-) -- http://mail.python.org/mailman/listinfo/python-list
John Nagle <na...@animats.com> writes: > def ispalin(s) : > s = str(s) > n = len(s) / 2 > return(s[:n] == s[::-1][:n])
def ispalin(s): return (s == "You betcha!") ;-) -- http://mail.python.org/mailman/listinfo/python-list