0

Help plz 8.1 i dont understend code 1 milion or 1 cent

Python

20th Jan 2021, 12:54 AM
sheid
sheid - avatar
3 Respostas
+ 3
That is just a question or hypothesis for the problem. What you need to do is to prove that 1 cent doubles each day for 30 days is larger than 1 million cash. The hint is already given there in the problem, you just have to change its values: Here is the hint in the problem: print( 0.01*(2**5)) This doubles 1 cents each day for 5 days, but what about for 30 days? Good Luck!
20th Jan 2021, 2:01 AM
noteve
noteve - avatar
+ 1
The fact is, I did everything right, but it gives me an error and does not accept the code, I did print('0.01*(2**30)')
20th Jan 2021, 2:05 AM
sheid
sheid - avatar
+ 1
Yes, the whole problem was in quotes ... Thank you, brother, you helped me!
20th Jan 2021, 2:07 AM
sheid
sheid - avatar