HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Python Labs
  2. /Instalment by instalment
MathematicsEasyHigh School (9–10)Commercial Mathematics

Instalment by instalment

You will find the interest of a recurring deposit in two ways and check that they agree. Test it on the lesson's account: ₹500500500 a month for 121212 months at 6%6\%6%.

Your tasks.

  1. In interest_by_months, add the simple interest of every instalment. The kkk-th one stays for n−k+1n - k + 1n−k+1 months.
  2. In interest_by_formula, use I=P×n(n+1)2×12×r100I = P \times \dfrac{n(n + 1)}{2 \times 12} \times \dfrac{r}{100}I=P×2×12n(n+1)​×100r​.
  3. In maturity_value, add the deposits to the interest.

Run it first, just as it is. The checker at the end prints FAIL for each task. Then do the tasks one at a time, and run the program again after each one. A Hint appears under every check that still fails.

When every line says PASS, try ₹800800800 for 121212 months at 7%7\%7%. Do both functions give the same interest?

StemPy LabContributed by StemPy Lab
python
Loading Python runtime…

A worked solution

Run your code once to unlock the worked solution.

Have you tried it?

Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.

Log in to save
← All Labs
← The tax each seller paysFinding the missing number →
More onCommercial Mathematics

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. How a recurring deposit growsRecurring Deposit Accounts

More labs on this topic

  1. Income, return and a switchMedium
  2. A shares calculatorEasy
  3. Finding the missing numberMedium
  4. The tax each seller paysMedium
  5. A GST bill in Python
Easy
All labs on this topic →