


def    lowercase_	(	_A    :					float					,      _A    :					float					,      _A    :					int		):

      """simple docstring"""




      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(_A					,      _A		):
            raise Exception("Years to repay must be an integer > 0"		)

      # Yearly rate is divided by 12 to get monthly rate
      lowerCamelCase__	:       Any					=						rate_per_annum / 12

      # Years to repay is multiplied by 12 to get number of payments as payment is monthly
      lowerCamelCase__	:       int					=						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()






def    lowercase_	(	_A    :					int					,      _A    :					int		):

      """simple docstring"""




      if a < 0 or b < 0:
            raise ValueError("the value of both inputs must be positive"		)

      lowerCamelCase__	:       List[str]					=						str(bin(_A		)		)[2:]  # remove the leading "0b"
      lowerCamelCase__	:       List[Any]					=						str(bin(_A		)		)[2:]  # remove the leading "0b"

      lowerCamelCase__	:       List[Any]					=						max(len(_A		)					,      len(_A		)		)

      return "0b" + "".join(
          str(int(char_a != char_b		)		)
          for char_a, char_b in zip(a_binary.zfill(_A		)					,      b_binary.zfill(_A		)		)		)


if __name__ == "__main__":
    import doctest

    doctest.testmod()


