0
Can someone help me solving this?
I have no clue how to solve the Exponentiation exercise in the Python basics 8 Project Module. Can someone help me? Thanks guys!
4 odpowiedzi
+ 3
print(0.01*2**30)
+ 3
Sara Costa
It seems your question appears to be an assignment. Please show us your attempt and use the 8 rules to get help from the community.
https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
Your question will be reviewed by a team of moderators and will most likely be marked for deletion.
https://www.sololearn.com/Discuss/1316935/?ref=app
+ 2
Since Abhay already gave the solution. Then maybe I'll just explain what he did.
0.01 - - > represents your money on the first day
2 - - > Based on the problem, the money needs to be doubled every day.
30 - - > Number of days
This is achieved using geometric sequence equation:
A = first_term * ratio ** term-1
where 0.01 is the first term
2 is the ratio
and 31 is the number of days (because it says after 30 days, so considering the first day, it is actually 31 days)
0
Thank you so much guys! And sorry for posting this in the wrong place. I will make sure to make it right next time. :D
print(“I should go”)