Pyhton | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pyhton

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)

11th Mar 2021, 1:07 PM
Siem Ermias
Siem Ermias - avatar
1 Answer
+ 2
Firstly it is mentioned that money be doubled in every 30 days. So multiply 2**30 then multiply it with given money which is 0.01. Print ((0.01) *(2**30))
11th Mar 2021, 1:42 PM
Aysha
Aysha - avatar