On 3/23/07, Alan Gauld [EMAIL PROTECTED] wrote:
Read the 'Whats in a name?' topic in my tutor for more about this
and how to deal with it.
http://www.catb.org/~esr/faqs/smart-questions.html as well.
--
- Rikard - http://bos.hack.org/cv/
___
Tutor
ok, i just started python and i'm stuck on this, could use some help :D
a='test'
def f():
a=a+'gg'
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Carson Wendy wrote:
ok, i just started python and i'm stuck on this, could use some help :D
a='test'
def f():
a=a+'gg'
What is your question? What happens when you run this code? What did you
expect to happen? What are you trying to do?
Kent
Carson Wendy wrote:
ok, i just started python and i'm stuck on this, could use some help
:D
a='test'
def f():
a=a+'gg'
Look for the definition of 'global'
And try this:
a = 'test'
def f()
global a
a = a + 'gg'
print a
f()
--
Senthil
Dish of the Day: Good
Carson Wendy [EMAIL PROTECTED] wrote in
ok, i just started python and i'm stuck on this, could use some help
:D
a='test'
def f():
a=a+'gg'
Welcome to the world of Python.
As a rule when you have a problem tell us what the problem is,
we aren't psychic. Specifically, if you get an