- 9
A bacteria culture starts with 500 bacteria and doubles in size every hour. Which means, after 1 hour the number of bacteria is
Im stuck here
7 Respostas
+ 8
Where's your attempt?
+ 6
Hi there. You have to review the lesson with exponentiation.
To raise a power number in the python language must be used **. So it's simple: they gave you the formula and you must put the N at the power.Replace N with 24 and you will have:
N=500*2**24
print(N)
But if you don't understand something it's good to review. Good luck!
+ 4
Roshan Gaikwad
How we would know where you stuck without seeing your code?
+ 4
You are stuck?
I thought bacteria would have stuck in you!
Attempt?
+ 3
Your task seem to be easy u need to learn basics of data types and loop suppose in one hours 500 bacteria spreading then after 1 hourse it should be double then for 2 hours it will be 1000 see here its multiplying by 2 use loop how many times u want to execute and inside loop write logic for double
+ 1
Hi there. Heres the answer
print ( 500 * 2 ** ( 24) )
0
Hi there,
Firstly you need to raise the power.
As it becomes double after every hour.
Total Hours are 24
Now, raise power,, 2 ** 24
Result = 16777216
now, get final result.
print(500*16777216)
Result 8388608000