1.2. Varying Debt ¶
Consider the previous question, and adjust your code which can calculate the monthly payment for any amount of given debt.
You can take the input from the user as a float.
Sample I/O:
Input:
1000.0
Output:
187.69
Input:
2000.0
Output:
375.39
debt = float(input())
total_money = debt * (1.02 ** 6)
monthly_payment = total_money / 6
print("{:.2f}".format(monthly_payment))