0
Exponentiation is the raising of one number to the power of another. This operation is performed using two asterisks **. Let
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:
9 odpowiedzi
+ 4
print(0.01*(2**30))
+ 2
print(0.01*(2**30))
0
The answer is
print(0.01*(2**30))
trust me it is working
0
thnaks Opanuga Stephen! done
- 1
use the hint to do the computation
then use print to output result
- 2
# your code goes here
print(0.01*(2**30))
- 2
print(0.01*(2**30))
- 3
# your code goes here
a = 0.01
print(a*(2**30))
- 4
print(0.01*(2**30))