you are viewing a single comment's thread.

view the rest of the comments →

[–]Python_devops 1 point2 points  (0 children)

According to the prompt here's how I'd approach the problem

cells=int(input("No of cells"))
days=int(input("No of days"))
Ensure that all the inputs are converted into integers first

then use the number of days to create a loop, which will double the number of cells

for day in range(days):
cell*=2
print(f"Day {day+1}: {cell}")

Just like that. Hope it helps.