- 3

I need help!! Just started coding last Friday? It's a python quiz project called exponentations

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).

25th Apr 2022, 10:36 PM
Wuis Peanut
Wuis Peanut - avatar
5 Answers
+ 3
Monish Khan I am sure the OP appreciates you providing him with the answer, but what has he learnt from the exercise. If you are going to supply answers, then also give a description of what the code is doing, that way they might learn something
26th Apr 2022, 2:44 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Always try to search first before posting a new question. As this was a coach's task, I believe there have been many people attempted to solve the task, and asked questions in the process. You will find clues and even solution to the task just by searching 👍
25th Apr 2022, 10:46 PM
Ipang
+ 1
Wuis Peanut Here is one of the many results in Q&A which refers to this challenge. https://www.sololearn.com/Discuss/2593247/?ref=app
25th Apr 2022, 11:50 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
I have!
25th Apr 2022, 11:31 PM
Wuis Peanut
Wuis Peanut - avatar
0
Ty!
25th Apr 2022, 11:51 PM
Wuis Peanut
Wuis Peanut - avatar