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!

14th Jan 2021, 12:28 AM
Sara Costa
Sara Costa - avatar
4 Answers
+ 3
print(0.01*2**30)
14th Jan 2021, 12:50 AM
Abhay
Abhay - avatar
+ 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
14th Jan 2021, 4:03 PM
BroFar
BroFar - avatar
+ 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)
14th Jan 2021, 2:54 AM
noteve
noteve - avatar
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”)
14th Jan 2021, 9:44 PM
Sara Costa
Sara Costa - avatar