id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

david.white@denison.edu cs111fall2019 > growth3
prev  |  next  |  chance

Write a function growth3(totalDays) that simulates a population that grows by 110% every day. Assume that the initial population size is 10. Return the total population size on the last day (it should be an integer). You must use a for loop to complete this computation. Don't just plug the input into a mathematical formula.


growth3(10) → 25
growth3(1) → 11
growth3(2) → 12

...Save, Compile, Run (ctrl-enter)

def growth3(totalDays):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy