So this week we learned:
Strings
Input/Output and str Formatting
Docstrings and Function help
Function Design Recipe
Function reuse
Visualizing Function Calls
I even tried my hand at writing a little monthly payment calculator module for calculating monthly payments for fixed payment mutual funds, it goes something like this (monthlyincome.py):
print(“Monthly Payment Calculator”)
investment = float(input(“enter investment amount: “))
NAV = float(input(“enter NAV per unit: “))
pay_per_unit = float(input(“enter payment per unit: “))
monthly_income = (investment/NAV * pay_per_unit)/12
print(monthly_income)
Here’s the visualizer: http://goo.gl/iFaiWL