Feb-07-2021, 06:26 PM
(Feb-07-2021, 04:04 PM)deanhystad Wrote: week 5 = 150 * 1.15^5Haha @deanhystad, that is indeed the most intelligent way to solve the problem.
But I believe Ram needs to learn how to repeat blocks of code.
@Ram: did you already learned about
range()
? Like this:for i in range(5): apples = apples * 1.15If you have not then you should do something with the
while
statement.