learning-python question
JeremyLynch at fsmail.net
JeremyLynch at fsmail.net
Mon Jun 26 16:34:43 EDT 2000
hi,
I have just started learning python, although I am already confident in
c/c++, and I finding some of python's features confusing. This may seem
like a *very* stupid question so ignore it if you want to :)
My problem simplifies to:
count = 5
def count_func()
print count
count = count + 1
count_func()
Why can count_func() not see count (it throws up a 'name'
or 'attribute' error)
thanks if you can help,
----------------------
jeremylynch at fsmail.net
----------------------
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list