0
A bacteria culture starts with 500 bacteria and doubles in size every hour. Which means, after 1 hour the number of bacteria is
How to write Code in this
17 ответов
+ 6
Your try?
+ 1
Please give us your attempt
+ 1
print(500*2**24)
+ 1
11_A _B Kirti
Missing **24
+ 1
Noo plz check ques its only asked for one hour
+ 1
+ 1
h=1
n=500
population=n*(2**h)
print(population)
+ 1
Yes correct
0
print (500*2**24)
0
Thanks
0
The number of bacteria would be 1000
0
Use * for multiplication
Code is
print(500*2)
0
1000
0
https://code.sololearn.com/cElhr9FuioQ6
hour=int(input("Enter hours to check"))
bacteria=5000
for i in range (1,hour+1):
bacteria*=2
print("Bacteria=",bacteria)
0
print (500*2**24)
- 1
1000