def main(): #Show the amount of simple interest, using 0.01 as the #interest rate per period, 10 as the number of periods, #and $10,000 as the principal. show_interest(rate=0.01,periods=10,principal=10000.0) def show_interest(principal,rate,periods): interest = principal * rate * periods print('The simple interest is $',\ format(interest,',.2f'),\ sep='') #call the main function main()