On Wed, Sep 3, 2014 at 6:13 AM, Seymore4Head
<Seymore4Head@hotmail.invalid> wrote:
> I still can't get the syntax
> test='Hey buddy get away from my car'
> if test[0].alpha():
>     return True

If that's not in a function, "return" makes no sense, as the
SyntaxError will have told you. As to the actual check, that's
isalpha(), not alpha(), as you can see from the docs.

Suggestion: Choose subject lines that reflect the subject matter being
discussed. "Why doesn't this work" isn't very helpful. :)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to