The question is below but how is it calculated in Py and what command should I be entering in Py? Suppose you have $100, which you can invest with a 10% return each year. After one year, it's 100×1.1=110 dollars, and after two years it's 100×1.1×1.1=121. how much money you end up with after 7 years.
Please help.
Thanks to all who answer.