def mooon(weight, mnog): total_weight = 0 for year in range(1, 15): total_weight = total_weight + weight * mnog print('Year %s = %s' % (year, total_weight)) mooon(100, 25)
Standard input is empty
Year 1 = 2500 Year 2 = 5000 Year 3 = 7500 Year 4 = 10000 Year 5 = 12500 Year 6 = 15000 Year 7 = 17500 Year 8 = 20000 Year 9 = 22500 Year 10 = 25000 Year 11 = 27500 Year 12 = 30000 Year 13 = 32500 Year 14 = 35000