BetaUnder construction. Questions are being reviewed by teachers — enjoy the free practice in the meantime.
Python basics · Exercise
Simple interest
A savings club in Gweru lends money at simple interest. Write a function simple_interest(principal, rate, years) that returns the interest earned. Interest = principal x rate x years / 100, where rate is the yearly percentage rate. Hint: Multiply the three numbers together, then divide by 100.