Answers for "calc investiment money puthon"

0

calc investiment money puthon

# How much is your $100 worth after 7 years?
def calcProfit(invest, bonus, year):
	"""
    invest : total badget
    bonus : annual profit
    year : for how many years
    """
    return invest * (bonus ** year)

profit = calcProfit(100, 1.1, 7)

print(profit)
Posted by: Guest on February-20-2022

Python Answers by Framework

Browse Popular Code Answers by Language