Basics of Python,learning

D'Arcy J.M. Cain darcy at druid.net
Sun Mar 16 12:47:28 EDT 2008


On Sun, 16 Mar 2008 17:25:26 +0100
Guido van Brakel <guidovb1 at invalid.xs4all.nl> wrote:
> Hello
> 
> Why is this not working,and how can I correct it?

What are you expecting it to do?  For one thing, you are acting on a
variable 'a' but it is never defined.  The only objects that you have
is z, y, b and then b is redefined as a method which creates a variable
'x', overwrites it twice and then discards it.  Doesn't matter since
you never call the method anyway.

Back to the textbook I think.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list