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

10th Sep 2021, 7:32 AM
Billa Chandu
17 ответов
+ 6
Your try?
10th Sep 2021, 8:09 AM
ŁØVƏŔ
ŁØVƏŔ - avatar
+ 1
Please give us your attempt
11th Sep 2021, 2:45 AM
<★Shaurya Chauhan★>
<★Shaurya Chauhan★> - avatar
+ 1
print(500*2**24)
11th Sep 2021, 3:32 PM
CGO!
CGO! - avatar
+ 1
11_A _B Kirti Missing **24
11th Sep 2021, 6:24 PM
CGO!
CGO! - avatar
+ 1
Noo plz check ques its only asked for one hour
11th Sep 2021, 6:36 PM
11_A _B Kirti
11_A _B Kirti - avatar
11th Sep 2021, 6:37 PM
CGO!
CGO! - avatar
+ 1
h=1 n=500 population=n*(2**h) print(population)
11th Sep 2021, 11:52 PM
Oscar
+ 1
Yes correct
12th Sep 2021, 4:44 AM
11_A _B Kirti
11_A _B Kirti - avatar
0
print (500*2**24)
11th Sep 2021, 6:27 AM
Kodiganti Vijaya lakshmi
0
Thanks
11th Sep 2021, 6:53 AM
Billa Chandu
0
The number of bacteria would be 1000
11th Sep 2021, 2:28 PM
Olatunji Glory
Olatunji Glory - avatar
0
Use * for multiplication Code is print(500*2)
11th Sep 2021, 5:39 PM
11_A _B Kirti
11_A _B Kirti - avatar
0
1000
12th Sep 2021, 4:42 AM
Timothy Ware Jr
Timothy Ware Jr - avatar
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)
12th Sep 2021, 6:17 AM
Abhishek Kumar
Abhishek Kumar - avatar
0
print (500*2**24)
27th Jan 2022, 12:14 AM
Carlos Andrés
- 1
1000
10th Sep 2021, 8:30 AM
Roma Butaku
Roma Butaku - avatar