[Tutor] Income calculator

Alan Gauld alan.gauld at btinternet.com
Thu Sep 20 09:32:45 CEST 2007


"Ulrich Holtzhausen" <ulrich at lavabit.com> wrote

First the good news, what you are doing should work.

>  File "./pyfinances.py", line 18
>    print "Your expected earnings for %s is %d" % 
> (financeLogs['month'],
> financeLogs['total'])
>        ^
> SyntaxError: invalid syntax
>
> Non-working program: http://pastebin.com/f4da62e57

The bad news is that the code in the error message doesn't
match the code on pastebin. Which is correct?
If its pastebin you are missing a closing paren.
If its the error message then we need to see the real code.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list