[Tutor] local variable referenced before assignment
kellyadrian at hotmail.com
Thu Nov 17 19:47:07 CET 2011
hi all,keep getting the above error, can't understand or fix it, can anyone help.
def exchange(): euro=1 dollar=1.35 base=50 amount = input ('how much do you want to change') if amount>base: totalreturn=amount*dollar else: print 'not enough' return totalreturn
1 Bramble Close
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor