0
Need help in python
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).
4 Answers
+ 2
Got it and its so easy
print(0.01*2**30) and thinking đ like its more complicated
+ 4
Mallikharjuna , please do not duplicate your post. This does not help.
Try to solve the task. If you struggle, it might be that you should repeat some parts of the tutorial.
You have just started with the python tutorial, so please be patient and continue reading, learning and practicing.
Happy coding and much success.
0
I did :-( can u tell me the process
I just don't know what to do
0
They already gave ans as o.o1*(2**5) for five days just replace 5 with 30 lol đ