[Tutor] Error message...
Matthew Ngaha
chigga101 at gmail.com
Sat Aug 25 13:45:29 CEST 2012
>Hi Victoria. im a total beginner aswell but i noticed something. shouldnt this line:
else: return s(0) == s(-1) and isPalindrome (s[1:-1])
be
else: return s[0] == s[-1] and isPalindrome (s[1:-1])
it looks like you have the string s as a function which you are trying
to call. what you wanted was an index position right? which should be
s[] instead of s().
thanks for the help David. Sorry about the sent mail. Gmail is pretty
confusing for me:( _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list