The program must get the following information and then execute a formula to give an answer
The amount of money borrowed
The number of years for which the money was borrowed
The annual percentage rate for the loan
This is what I have so far, although I'm not sure if I'm doing it right (newbie). So i've got it printing the data and asking for inputs, but then I'm not sure how to go about executing the data to give out a number.
# Get information from user
print 'CALCULATOR FOR MORTGAGE LOANS'
loan_str = raw_input ("Amount of loan:")
loan = eval(loan_str)
years_str = raw_input("Number of years:")
years = eval(years_str)
rate_str = raw_input ("Annual percentage rate:")
rate = eval(rate_str)
Formula is

here is an example program:

Help is appreciated!

New Topic/Question
Reply
MultiQuote







|