[Tutor] AttributeError,
Steven D'Aprano
steve at pearwood.info
Wed Aug 12 05:32:50 CEST 2015
On Tue, Aug 11, 2015 at 07:38:21PM -0700, Ltc Hotspot wrote:
> Steven,
>
> Visit the URL links below to view the latest revised code:
I don't think so. I don't have access to the web right now, but I do
have access to email. And even if I did, I'm lazy and wouldn't follow
links and then have to copy and paste from the website into my reply.
Since I'm donating my time for free, the least you can do is do the
copying and pasting yourself.
> Output: 09:14:16
> Syntax message: val is not defined
I'm pretty sure that is not the actual error message you get. Are you
sure it is not a NameError, rather than SyntaxError?
The kind of error you get, together with the error message, often gives
you clues as to what is going on. Python goes to a huge amount of
trouble to provide a useful and informative error message, instead of
just saying "Error!" and leaving you to guess. So read the message: if
it tells you that "val is not defined", then you have not defined a
variable val.
--
Steve
More information about the Tutor
mailing list