Re: [Tutor] a very simple question

2007-03-24 Thread Rikard Bosnjakovic
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

[Tutor] a very simple question

2007-03-23 Thread Carson Wendy
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

Re: [Tutor] a very simple question

2007-03-23 Thread Kent Johnson
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

Re: [Tutor] a very simple question

2007-03-23 Thread Senthil_OR
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

Re: [Tutor] a very simple question

2007-03-23 Thread Alan Gauld
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