Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #calc #investiment #money #puthon
ADD COMMENT
Topic
Name
1+8 =