0
cell growth
Can help me with this ? I have tried a lot of different ways of solving it and I can't seem to get it right is there something I'm missing? I even did it on Moblie and even tried it on Pycharm as well . I just don't know if it's me or the app Lmao # 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 : # Daily message print("Day " + str(counter) + ": " +str(cells)) cells *= 2 counter += 1
2 Respostas
+ 2
Jose Flores
Try cut the line `cells*=2` and paste just below the while loop(over the print statement).
Or
just write `cells*=2` below the cells defination (without removing from while loop) and replace the line `while counter <= days + 1` by `while counter <= days`.
Bcoz, it should be double of cells value at Day 1.
+ 1
Bro, thank you so much. You just saved me a headache 🙏🏽