Can you help me with this please? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Can you help me with this please?

The formula to calculate the bacteria after N hours will be: 500*2ᴺDid you know that there are more bacteria cells in your body than cells that make up your body? Weird! A bacteria culture starts with 500 bacteria and doubles in size every hour. Which means that after 1 hour the number of bacteria is 1000, after 2 hours, 2000, and so on. The formula to calculate the bacteria after N hours will be: 500*2ᴺ

18th Nov 2021, 10:34 PM
Adam Berry
Adam Berry - avatar
5 Réponses
+ 6
Jairo Soto , (1) it does not help the op when we give him a complete solution. it is better to give some hints and guide him. (2) the code you have presented is correct, but does NOT work for the code coach exercice, because this one requests NO input. so the solution is: print(500 * 2 ** 24) (3) Adam Berry , next time when you expect to get help from the community, please post your attempt together with the question. thanks to all!
19th Nov 2021, 12:19 PM
Lothar
Lothar - avatar
+ 1
Says its need inputs . I'm new to this not that technical
18th Nov 2021, 11:31 PM
Adam Berry
Adam Berry - avatar
0
This results in an error output
18th Nov 2021, 11:05 PM
Adam Berry
Adam Berry - avatar
0
what is the error?
18th Nov 2021, 11:16 PM
Jairo Soto
Jairo Soto - avatar
0
Write the number of hours
18th Nov 2021, 11:38 PM
Jairo Soto
Jairo Soto - avatar