Write months_to_goal(goal, monthly, rate): each month you add monthly to savings, then the balance grows by rate%. Return how many months until the balance is at least goal, using a while loop.
months_to_goal(10000, 1000, 0) → 10
months_to_goal(0, 500, 1) → 0
Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.