I am trying to suss out Zope and following the 'Book'. I have entered the following as a python script: "calculate compound interest """" i= interest_rate / periods n= periods * years return ((1+i)**n) * principal" and get 'syntax error'. More precisely:" SyntaxError: invalid syntax" I think I am copying them book - what is wrong? Thanks Dapo
Dapo Ladimeji wrote:
"calculate compound interest """" i= interest_rate / periods n= periods * years return ((1+i)**n) * principal"
Try the following instead: """ calculate compound interest """ i = interest_rate / periods n = periods * years return ((1+i)**n) * principal cheers, Chris
Many thanks for all suggestions - in the end I had /" instead of /, in the parameter lists. Dapo -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: 16 October 2002 12:24 To: Dapo Ladimeji Cc: zope@zope.org Subject: Re: [Zope] help? Dapo Ladimeji wrote:
"calculate compound interest """" i= interest_rate / periods n= periods * years return ((1+i)**n) * principal"
Try the following instead: """ calculate compound interest """ i = interest_rate / periods n = periods * years return ((1+i)**n) * principal cheers, Chris
participants (2)
-
Chris Withers -
Dapo Ladimeji