Using docstring
You've developed the MortgageCalculator class. Now, complete a docstring to provide explanations for the class's attributes.
Bu egzersiz, kursun bir parçasıdır
Case Study: Building Software in Python
Egzersiz talimatları
- For the
monthsattribute, addthe number of months in the loan. - For the
monthly_paymentattribute, addthe amount of the payment per month.
Uygulamalı etkileşimli egzersiz
Bu egzersizi bu örnek kodu tamamlayarak deneyin.
class MortgageCalculator(FinancialCalculator):
"""
A class used to represent a mortgage calculator.
Attributes
-------
months: ____.
monthly_payment: ____.
"""
# Code omitted for space