discussion

Paul Rubin no.email at nospam.invalid
Thu Sep 30 22:49:15 EDT 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