#Write a function month_pay that has two parameters - loan amount and #term in years. The function returns the monthly payment. Write main #that reads a number of customers who took a loan. For each customer, #the program reads the loan amount and the term, in years. Assume the #input is valid. The program finds the number of customers that will #pay a monthly payment 1000$ and above. def month_pay(loan, term): return loan/(term*12) def main(): customers=int(input("enter number of customers ")) over1000=0 for counter in range(customers): loan=float(input("loan amount ")) term=int(input("term in years ")) payment=month_pay(loan, term) print("customer", counter+1, "pays", payment) if(payment>=1000): over1000=over1000+1 if(over1000>0): print(over1000, "customers paid 1000 or more") else: print("nobody paid 1000 or more per month") main()