Question: Help with python the main function tasks are Calls inputLoanDatato gather loan info Sets up a loop that calls functions that display the menu and

Help with python

the main function tasks are

Calls inputLoanDatato gather loan info

Sets up a loop that calls functions that display the menu and chosen reports

The loop ends when it sees the menu return a loan term of 0 months

this what I write and it didn't work

def main(): pv, ratePerPeriod = inputLoanData() numberOfPeriods = showMenu() while not numberOfPeriods == 0 : paymentAmount = payment(pv, ratePerPeriod, numberOfPeriods ) showReport (pv, ratePerPeriod, numberOfPeriods, paymentAmount) rep = input ("Press to continue") while True : numberOfPeriods = showMenu() while not numberOfPeriods == 0 : paymentAmount = payment(pv, ratePerPeriod, numberOfPeriods ) showReport (pv, ratePerPeriod, numberOfPeriods, paymentAmount) rep = input ("Press to continue")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!