[Tutor] Accessing Variables

Matt Williams matthew.williams at cancer.org.uk
Wed Oct 5 23:13:45 CEST 2005


Dear List,

I'm trying to clarify something about accessing variables.

If I have ONE.py file with some variable a, and ONE imports TWO, which
has a variable b, can TWO access variable a (I don't think so, but I
just thought I'd check).

I guess the way round this is just to make some classes & objects, and
then they can easily pass parameters to each other, but I just thought
I'd check.

Matt  



More information about the Tutor mailing list