Re: [Tutor] local variable referenced before assignment

2011-11-17 Thread ADRIAN KELLY
you are spot on. thanks very much i understand the problem now and its been solved. very clear help thanks, adrian > Date: Thu, 17 Nov 2011 14:01:19 -0500 > From: d...@davea.name > To: kellyadr...@hotmail.com > CC: tutor@python.org > Subject: Re: [Tutor]

Re: [Tutor] local variable referenced before assignment

2011-11-17 Thread Joel Goldstick
> Subject: [Tutor] local variable referenced before assignment > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > > ___

Re: [Tutor] local variable referenced before assignment

2011-11-17 Thread Dave Angel
On 11/17/2011 01:47 PM, ADRIAN KELLY wrote: hi all,keep getting the above error, can't understand or fix it, can anyone help. def exchange():euro=1dollar=1.35base=50amount = input ('how much do you want to change')if amount>base:totalreturn=amount*dollar else:

Re: [Tutor] local variable referenced before assignment

2011-11-17 Thread delegbede
Post the error stack. Sent from my BlackBerry wireless device from MTN -Original Message- From: ADRIAN KELLY Sender: tutor-bounces+delegbede=dudupay@python.org Date: Thu, 17 Nov 2011 18:47:07 To: Subject: [Tutor] local variable referenced before assignment

[Tutor] local variable referenced before assignment

2011-11-17 Thread ADRIAN KELLY
hi all,keep getting the above error, can't understand or fix it, can anyone help. def exchange():euro=1dollar=1.35base=50amount = input ('how much do you want to change')if amount>base: totalreturn=amount*dollarelse:print 'not enough'return totalretur