Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 21 Online
OpenStudy (anonymous):

what's the alternative to calling a list element (problem set 4.2 to get growth rates) while i > 0: x = accountBalance + (salary * save * 0.01) * growthRates(i) accountBalance = x i -= 1 what's the alternative to calling a list element (problem set 4.2 to get growth rates) while i > 0: x = accountBalance + (salary * save * 0.01) * growthRates(i) accountBalance = x i -= 1 @MIT 6.00 Intro Co…

OpenStudy (anonymous):

growthRates(i) causes an error - what's the problem?

OpenStudy (anonymous):

growthRates[i] Use square brackets for indices

OpenStudy (anonymous):

so simple! Must have missed that in the lectures d'oh!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!