discussion

Paul Rubin no.email at nospam.invalid
Fri Oct 1 04:49:15 CEST 2010


John Nagle <nagle at 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!")

;-)



More information about the Python-list mailing list