독스트링 사용하기
여러분은 MortgageCalculator 클래스를 만들었습니다. 이제 클래스 속성에 대한 설명을 제공하도록 독스트링을 완성하세요.
이 연습은 강의의 일부입니다
케이스 스터디: Python으로 소프트웨어 만들기
연습 안내
months속성에는the number of months in the loan를 추가하세요.monthly_payment속성에는the amount of the payment per month를 추가하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
class MortgageCalculator(FinancialCalculator):
"""
A class used to represent a mortgage calculator.
Attributes
-------
months: ____.
monthly_payment: ____.
"""
# Code omitted for space