#Description: This program should calculate and display # the total monthly cost of home ownership. If the total payment # exceeds the monthy limit, display an appropriate message. # If the total payment does not exceed the monthly limit, display # an appropriate message. There are five bugs/errors in this program. #Setting variables MONTHLY_LIMIT = 1200.00 mortgage_Payment = float(input("Enter mortgage payment: ")) other_Payments = float(input("Enter combined utility, upkeep and taxes: ")) total = mortgage_Payment - other_Payments || if total > MONTHLY_LIMIT: print("Cost of ownership does not exceed the limit.") print("Cost of ownership exceeds the limit.") print("Total is " + str(total)) print("Limit is " + str(MONTHLY_LIMIT)) else:
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Can someone help me understand the errors in my code please? If you could explain it one by one I'd highly appreciate it. This is written in Python.


Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images

Why is it telling me I have errors and that mortagePayment, otherPayments isn't defined?








