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 →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data 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.HelpAboutContactPrivacy PolicyTerms of UseRefund Policy

Courses

Teacher-curated, self-paced courses. Looking for a guided sequence through a full topic? See Learning Paths.

All CoursesLearning Paths
3 courses
Lists: Many Values in One Variable
Python Programming · Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Lists, Loops
FreeCh 5 · 1/3

So far, one variable held one value. A class has thirty marks, a shop has a hundred prices, and you cannot make a hundred variables. A list holds many values in one variable. In this course you make lists, read them by position and by slice, add, remove, replace and sort items, go through a list with a loop, and find totals, averages, the biggest and the smallest. You learn why a copy of a list is not what you expect, and how to make a table with a list inside a list. A marks tracker is the project at the end. The practice runs your code on real lists and tells you which results are wrong.

5Lessons15Problems8Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
Repeat with for: Loops
Python Programming · Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Loops
FreeCh 4 · 1/2

A computer does not get tired. A loop lets it repeat the same lines a hundred, a thousand or a million times, while you type them only once. In this course you learn the for loop, the range() function that makes a row of numbers, how a loop builds an answer such as a sum, a count or a factorial, and how to put one loop inside another to make tables and patterns. A project at the end prints a multiplication table book. The practice runs your loops and tells you which results are wrong.

5Lessons14Problems8Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
Repeat Until: while Loops
Python Programming · Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Loops
FreeCh 4 · 2/2

A for loop is for a number of rounds that you know. A while loop is for the cases where you do not know: keep saving until there is enough, keep asking until the answer is right, keep going until something happens. In this course you write while loops, learn what makes them stop, leave a loop early with break, skip a round with continue, and ask the user again and again. A lesson on the loops that go wrong shows how to choose between for and while, and how to find an endless loop and a loop that is off by one. A guessing game with hints and a limit of tries is the project. The practice runs your loops and tells you which results are wrong.

5Lessons14Problems9Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
How courses work:A guide for learners and teachers