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]
> 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
>
>
> ___
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:
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
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