HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClassesGroups

>_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
  • Blog

Account

  • Dashboard
  • My Content
  • Profile
  • Log in
© 2026 senLearn. All rights reserved.HelpAboutContactPrivacy PolicyTerms of UseRefund Policy
Code it

Python Labs

Interactive, runnable Python. Edit the code, run it in your browser, no setup required.

+ Build a Lab
Pick a subject to see its topics614 labs
A Doppler calculator New Physics
High School (11–12) · Doppler Effect, Sound Waves and Hearing

You will build a small Doppler calculator for sound. The idea. With speeds along the line, measured in the air, f' = f (v + v_o)/(v - v_s). Here v_o is positive when the listener moves towards the source, and v_s is p…

StemPy LabStemPy Lab
Solubility from Ksp New Chemistry
High School (11–12) · Buffers, Salt Hydrolysis and Solubility Product

You will write a function that finds the molar solubility of any salt A_xB_y from its K_sp. Then you will sort some salts by how much of each dissolves, and decide whether a mixture gives a precipitate. The idea. K_sp…

StemPy LabStemPy Lab
Means and the AM-GM inequality New Mathematics
High School (11–12) · Sequences and Series

Build tools for the two means, and use them to check the AM-GM inequality on many pairs. The idea. A = (a + b)/(2) and G = √(ab), with A ≥ G. n geometric means between a and b have ratio ((b)/(a))^(1)/(n + 1). Two num…

StemPy LabStemPy Lab
Chromosomes by their centromere New Biology
High School (11–12) · Cell Structure and Organelles

Each chromosome below is given by the lengths of its short arm and its long arm, in micrometres. You will name each one from where its centromere lies, count how many there are of each kind, and list the telocentric o…

StemPy LabStemPy Lab
Simulating many crosses New Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and Randomness

You will simulate 4000 children of Pp with Pp and check that about one in four has white flowers. The idea. random.choice picks one letter from a parent. One letter from each parent, sorted, makes a child. A fixed see…

StemPy LabStemPy Lab
The summary machine Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Averages: Mean, Median and Mode, Spread of Data, Probability and Chance

You will build a function that summarises any list of numbers: how many, the mean, the median, the range and a chance. Then it summarises the month, and the definition of a hot day is yours to choose. The idea. A summ…

StemPy LabStemPy Lab
The speed of sound from a resonance tube New Physics
High School (11–12) · Sound Waves and Hearing, Superposition and Standing Waves

You will turn the readings of a resonance tube into the speed of sound. The idea. The first two resonances are half a wavelength apart, so v = 2f(l_2 - l_1). The end correction is e = (l_2 - 3l_1)/(2), and it is about…

StemPy LabStemPy Lab
A buffer calculator New Chemistry
High School (11–12) · Buffers, Salt Hydrolysis and Solubility Product

You will write functions for the pH of an acidic buffer, before and after a little strong acid is added, and pick out the buffers that work best. The idea. pH = pK_a + [salt][acid]. In one solution you can use millimo…

StemPy LabStemPy Lab
Terms and sums of a GP New Mathematics
High School (11–12) · Sequences and Series

Write the formulas of a geometric progression yourself, with exact fractions, and test them against plain adding. The idea. a_n = ar^n - 1, S_n = (a(r^n - 1))/(r - 1) for r 1 and na for r = 1, and S_∞ = (a)/(1 - r) fo…

StemPy LabStemPy Lab
Sorting the plastids New Biology
High School (11–12) · Cell Structure and Organelles

Each plant part below is listed with what its plastids hold. You will write a function that names the plastid, name the plastid of every part, and list the parts whose plastids are leucoplasts. The idea. Chlorophyll:…

StemPy LabStemPy Lab
A Punnett square function New Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer

You will write the three pieces of a one-gene cross for flower colour in peas: purple (P) is dominant over white (p). The idea. A child takes one letter from each parent, sorted so the capital comes first. One P makes…

StemPy LabStemPy Lab
Graph the month Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Averages: Mean, Median and Mode, Spread of Data, Probability and Chance

The month of 30 days is in two lists: the temperatures and the rainy days. You will split the temperatures into rainy and dry days, and count how many days had each temperature. Then the program draws a line graph wit…

StemPy LabStemPy Lab
Beats and an unknown fork New Physics
High School (11–12) · Superposition and Standing Waves, Sound Waves and Hearing

You will write three functions for beats. The idea. Two close frequencies give f_b = |f_1 - f_2| beats each second, and you hear the pitch (f_1 + f_2)/(2). An unknown fork is f_known + f_b or f_known - f_b. Wax lowers…

StemPy LabStemPy Lab
A weak acid, exactly New Chemistry
High School (11–12) · Ionic Equilibrium: Acids, Bases and pH

A weak acid has K_a = 6.3 × 10^-5. You will find its hydronium concentration by the shortcut and by the exact quadratic, the share that ionises, and the pH. The idea. The shortcut is √(K_a C). The exact value is the p…

StemPy LabStemPy Lab
An AP toolkit New Mathematics
High School (11–12) · Sequences and Series

You will write three small functions for arithmetic progressions: the nth term, the sum of n terms, and the means between two numbers. The checker tests them on many cases. The idea. a_n = a + (n - 1)d, S_n = (n)/(2)(…

StemPy LabStemPy Lab
Inside or outside the system? New Biology
High School (11–12) · Cell Structure and Organelles

Eight organelles of a eukaryotic cell are listed with their jobs. You will mark which belong to the endomembrane system, list the ones that do not, and put the stops of a secreted protein in order. The idea. A set is…

StemPy LabStemPy Lab
Fitting growth curves New Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and Randomness

You will write two fitting functions: one that finds the doubling time of exponential counts with a straight line through N, and one that finds r and K of logistic counts with curve_fit. The idea. For exponential coun…

StemPy LabStemPy Lab
Two dice: simulation against exact Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Probability and Chance

You will find the exact probability of each sum of two dice by listing the 36 pairs, then roll two dice 3,600 times and compare. The program draws both side by side. The idea. The exact probability counts equally like…

StemPy LabStemPy Lab
Normal modes of strings and pipes New Physics
High School (11–12) · Superposition and Standing Waves, Sound Waves and Hearing

You will list the natural frequencies of a string and of two kinds of pipe, and count the notes below a limit. The idea. A string tied at both ends: f_n = (n)/(2L)√((T)/(μ)) for n = 1, 2, 3, A pipe open at both ends:…

StemPy LabStemPy Lab
pH and pOH of strong solutions New Chemistry
High School (11–12) · Ionic Equilibrium: Acids, Bases and pH

You have one strong acid and one strong base. You will find the hydronium and hydroxide concentrations, then the pH and pOH of each. The idea. A strong acid gives all its H_3O^+, a strong base all its OH^-. Then K_w g…

StemPy LabStemPy Lab
Terms and running totals New Mathematics
High School (11–12) · Sequences and Series

You will make the terms of a sequence from its formula, build its partial sums with a loop, and then get the terms back from the sums. The checker tells you which tasks pass. The idea. A partial sum is the one before…

StemPy LabStemPy Lab
Which way does the water move? New Biology
High School (11–12) · Cell Structure and Organelles, Transport Across the Cell Membrane

A red blood cell holds about 0.9 per cent salt. You will write a function that says which way water moves when a cell sits in a solution, then use it on four solutions. The idea. In osmosis, water moves towards the mo…

StemPy LabStemPy Lab
A population stepper New Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Biology by Computer, Simulation and Randomness

You will write the three small functions that grow a population in time steps: one exponential step, one logistic step, and a loop that runs the logistic steps for a given time. The idea. In a step of dt, an exponenti…

StemPy LabStemPy Lab
The long run of a coin Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Probability and Chance

You will toss a coin 500 times in a program, keep the share of heads after every toss, and draw how that share moves. Then you see how close the last share comes to 0.5. The idea. The share of heads jumps about in a s…

StemPy LabStemPy Lab
Adding two waves New Physics
High School (11–12) · Superposition and Standing Waves

You will add two waves point by point, and check the result against the formula for the amplitude of the sum. The idea. A wave is y = a(kx - ω t + φ). Two waves of the same k and ω add to a wave of amplitude A = √(a_1…

StemPy LabStemPy Lab
Page 1 of 25
…

Showing 1–25 of 614