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

Courses

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

All CoursesLearning Paths
8 courses
Three Essentials Projects
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Essentials Projects, Dictionaries, Errors and Exceptions, Text Processing
FreeCh 4 · 2/2

Can you crack a Caesar code without knowing the shift?

  • A contact book with a dictionary and try and except
  • A code cracker that breaks a Caesar code
  • A marks report with statistics, sorting and binary search
5Lessons13Problems8Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
Working with Text
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Text Processing
FreeCh 4 · 1/2

Why are The, the and THE different words to Python? How does a secret code work?

  • Cut, glue and clean text with split, join and strip
  • Count the words, and write and break a secret code
  • Check palindromes and anagrams
5Lessons13Problems6Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
A Function That Calls Itself
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Recursion
FreeCh 3 · 2/3

Why is the simple Fibonacci function so slow? How do you search folders inside folders?

  • Find the base case that stops the calls
  • Write sums, factorials, powers and Fibonacci numbers
  • Follow the call stack and walk through folders in folders
5Lessons14Problems6Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
Find It and Put It in Order
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Searching and Sorting
FreeCh 3 · 1/3

How can ten looks find a word in a 1000-page dictionary? How do ties get a rank?

  • Search a list item by item, then by halving it
  • Sort with Python's tools and with your own methods
  • Count the steps to compare methods
5Lessons13Problems7Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
Import a Toolbox: Modules
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Modules and Libraries
FreeCh 2 · 2/2

How many 45-seat buses do 130 students need? Is your die really fair?

  • Use the math, random, statistics and datetime modules
  • Look inside a module with dir and help
  • Read an import error and build a dice laboratory
5Lessons14Problems7Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
When Things Go Wrong: try and except
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Errors and Exceptions
FreeCh 2 · 1/2

What should a program do when you type a letter for your age? Which line names the error?

  • Read error messages and name the common errors
  • Catch errors with try, except, else and finally
  • Raise your own errors with a clear message
5Lessons14Problems7Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
Tuples and Sets
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Tuples and Sets
FreeCh 1 · 2/2

How many different letters are in mississippi? Who is in both clubs?

  • Unpack tuples and return two values from a function
  • Remove repeats and compare groups with set operations
  • Choose between a list, tuple, set and dictionary
5Lessons13Problems5Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
Dictionaries: Look Things Up
Python Programming · High School (9–10), High School (11–12), Undergraduate, General · Dictionaries
FreeCh 1 · 1/2

How do you count every letter in banana? What if the key you ask for is not there?

  • Make, change and look up keys and values
  • Loop through a dictionary and count with it
  • Nest dictionaries and build a tiny shop
5Lessons14Problems7Python Labs1Question Set1Mock Test
StemPy LabStemPy Lab
How courses work:A guide for learners and teachers