Can anyone tel me how to get done the exponential problem at the end of the first chapter in "learn pxthon?" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Can anyone tel me how to get done the exponential problem at the end of the first chapter in "learn pxthon?"

..

4th Jul 2021, 12:43 PM
Benjamin Roemer
Benjamin Roemer - avatar
4 Answers
+ 3
Benjamin Roemer , have you already done a try with this task? if yes, please show us your attempt. if no, please do a try by yourself. in any case please put your code in playground and link it here. thanks!
4th Jul 2021, 12:52 PM
Lothar
Lothar - avatar
+ 1
We can help! Post all the information and your code here!
4th Jul 2021, 12:49 PM
Slick
Slick - avatar
+ 1
Exponentiation is the raising of one number to the power of another. This operation is performed using two asterisks **. Let's use exponentiation to solve a known problem. You are offered a choice of either $1.000.000 or $0.01 (one penny) doubled every day for 30 days (the resulting amount is doubled every day). Task: Write a program to calculate the amount that will result from the doubling to understand which choice results in a larger amount. Hint: Let's see how exponentiation can be useful to perform the calculation. For example, if we want to calculate how much money we will have on the 5th day, we can use this expression: 0.01*(2**5) = 0.32 dollars (multiply the penny by 2 raised to the power of 5).
4th Jul 2021, 12:56 PM
Benjamin Roemer
Benjamin Roemer - avatar
- 1
Nice, now just post your attempt and we can help
4th Jul 2021, 1:30 PM
Slick
Slick - avatar