
'''simple docstring'''



def A (__lowerCamelCase :float					,      __lowerCamelCase :float					,      __lowerCamelCase :int						):
						if principal <= 0:
												raise Exception("""Principal borrowed must be > 0"""						)
						if rate_per_annum < 0:
												raise Exception("""Rate of interest must be >= 0"""						)
						if years_to_repay <= 0 or not isinstance(__lowerCamelCase					,      __lowerCamelCase						):
												raise Exception("""Years to repay must be an integer > 0"""						)

						# Yearly rate is divided by 12 to get monthly rate
						_lowerCAmelCase    		=					rate_per_annum / 12

						# Years to repay is multiplied by 12 to get number of payments as payment is monthly
						_lowerCAmelCase    		=					years_to_repay * 12

						return (
						    principal
						    * rate_per_month
						    * (1 + rate_per_month) ** number_of_payments
						    / ((1 + rate_per_month) ** number_of_payments - 1)
						)


if __name__ == "__main__":
						import doctest

						doctest.testmod()


'''simple docstring'''



_lowercase          =						"""
# Transformers 설치 방법
! pip install transformers datasets
# 마지막 릴리스 대신 소스에서 설치하려면, 위 명령을 주석으로 바꾸고 아래 명령을 해제하세요.
# ! pip install git+https://github.com/huggingface/transformers.git
"""

_lowercase          =						[{"""type""": """code""", """content""": INSTALL_CONTENT}]
_lowercase          =						{
    """{processor_class}""": """FakeProcessorClass""",
    """{model_class}""": """FakeModelClass""",
    """{object_class}""": """FakeObjectClass""",
}
