Cell Growth - Python Beginners - while loops
I am pretty new to programming. So, I know this question may be extremely simple for most people, but I am really confused on this problem bellow it. And I wonder if someone could help me to understand it better. I would like to know What is the "counter" for in this problem? and why should one be added to the days? (line 11) Thank you :) __________________________________________________________ PROBLEM Imagine you are a scientist looking at a new type of cell under the microscope. This type of cell divides itself into 2 daughter cells every 24 hours, meaning that the cell population duplicates every day. Task Complete the code to take the initial cell population and the number of days you are observing the cells to calculate the cell population at the end of each day in the following format img-component ____________________________________ # take the initial cell population as input cells = int(input()) # take the number of days as input days = int(input()) # initialize the day counter counter = 1 #complete the while loop while counter < days + 1: cells = cells*2 # Daily message print("Day " + str(counter) + ": " +str(cells)) counter += 1