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.HelpFor SchoolsAboutContactPrivacy 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 topics1258 labs
Wavelengths and a digital receiver New Physics
High School (9–10) · Electromagnetic Waves

You will write three small functions about electromagnetic waves and digital signals. The idea. For every electromagnetic wave, c = fλ with c = 3.0 × 10^8 m/s. The regions of the spectrum have approximate limits in fr…

StemPy LabStemPy Lab
A condensation polymer calculator New Chemistry
High School (9–10) · Reactions and Uses of Carbon Compounds

You will write four functions for the lesson on condensation polymers. One counts the links in a chain. One finds the relative mass of a chain from its monomers. One finds the relative mass of a repeat unit. One finds…

StemPy LabStemPy Lab
Gradients and stationary points New Mathematics
High School (9–10) · Limits and Derivatives

You will find the gradient of y = x^3 - 6x^2 + 9x + 1, and use it to find and classify its stationary points. Your tasks. In derivative, return (dy)/(dx) = 3x^2 - 12x + 9. In second, return (d^2y)/(dx^2) = 6x - 12. Se…

StemPy LabStemPy Lab
The gene transfer line New Biology
High School (9–10) · Biotechnology and its Applications

You will write functions for the numbers in making a human protein in bacteria, and a lookup for the order of the steps. The idea. Some bacteria take up a plasmid, and some of those plasmids carry the human gene. The…

StemPy LabStemPy Lab
Fit a noisy sine Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Trigonometry and Waves by Computer

You will fit a sine to 60 noisy readings of a swinging spring, with a first guess from the FFT. The idea. The FFT finds the main frequency to within one bar. curve_fit then refines the amplitude, the frequency and the…

StemPy LabStemPy Lab
A shuffling test New Statistics & Data Science
High School (9–10), High School (11–12), Undergraduate, General · Learning from Samples, Probability and Chance

You will write a shuffling test for two groups and use it on made-up data. The idea. Under the null idea of no difference, the labels mean nothing. Pool the values, shuffle, split them again and record the difference…

StemPy LabStemPy Lab
Charge book-keeping New Physics
High School (9–10) · Electrostatics

You will write three small functions about electric charge. The idea. Like charges repel and unlike charges attract. When a rod is rubbed with a cloth, electrons move from one to the other, and the total charge stays…

StemPy LabStemPy Lab
A repeat unit calculator New Chemistry
High School (9–10) · Reactions and Uses of Carbon Compounds

You will write four functions for the lesson on addition polymers. One finds the relative formula mass of a repeat unit from the four groups on its two carbon atoms. One finds the mass of a chain. One finds the number…

StemPy LabStemPy Lab
Powers, logarithms and a change of base New Mathematics
High School (9–10) · Functions as Models of Data

You will solve an equation a^x = b with logarithms, change the base of a logarithm, and find where the logarithm laws hold. Your tasks. In solve_power, return the solution of a^x = b, which is ( b)/( a). Use log from…

StemPy LabStemPy Lab
Bacteria and fermentation sums New Biology
High School (9–10) · Biotechnology and its Applications

You will write functions for a culture of bacteria and for the fermentation of glucose by yeast. The idea. Each division doubles the bacteria, so after n divisions one bacterium gives 2^n. In a reaction the total mass…

StemPy LabStemPy Lab
A wave and its speed Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Trigonometry and Waves by Computer

You will draw a wave of wavelength 3.0 m and frequency 4.0 Hz at two times, find its first crest each time, and work out its speed. The idea. The crest of y = A(kx - ω t) moves at the speed v = fλ. You find where the…

StemPy LabStemPy Lab
Testing a coin New Statistics & Data Science
High School (9–10), High School (11–12), Undergraduate, General · Learning from Samples, Probability and Chance

You will test a coin both ways: by simulation and by exact counting. The idea. Under the null idea, the coin is fair. The p-value is the chance that a fair coin gives at least as many heads as the real one. Your tasks…

StemPy LabStemPy Lab
Where is the centre of gravity? New Physics
High School (9–10) · Rotational Motion

You will write three small functions about a flat lamina and about toppling. The idea. A uniform lamina is made of rectangles. The weight of each rectangle is in proportion to its area, and acts at its middle. A recta…

StemPy LabStemPy Lab
A carbon budget New Chemistry
High School (9–10) · Chemical Reactions

You will write four functions for the lesson on climate. One finds the glucose that a plant makes from a mass of carbon dioxide. One finds the volume of oxygen it gives out. One finds the carbon dioxide from burning p…

StemPy LabStemPy Lab
A hidden quadratic and a cubic inequality New Mathematics
High School (9–10) · Graphs of Functions

You will solve a quartic by a substitution, and count whole numbers that satisfy a cubic inequality. Your tasks. In quartic_solutions, solve x^4 - sx^2 + p = 0. Find the values of u = x^2 from the quadratic u^2 - su +…

StemPy LabStemPy Lab
A model of levelling off New Biology
High School (9–10) · Organisms and Populations

You will write functions for a population whose births fall as it approaches the level that its food can support. The idea. In each step, births are b × n × (1 - n/K) for n animals and a food limit K. Deaths are d × n…

StemPy LabStemPy Lab
An identity checker Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Trigonometry and Waves by Computer

You will write three small functions that check a claimed identity on many angles: one finds the worst miss between the two sides, one says whether the identity holds, and one finds an angle where it fails. The idea.…

StemPy LabStemPy Lab
How often do the intervals catch the truth? New Statistics & Data Science
High School (9–10), High School (11–12), Undergraduate, General · Learning from Samples

You will simulate many surveys from a town where the true share is known, and count how often the 95% interval catches it. The idea. Each survey asks n people. Each person says yes when a random number is below the tr…

StemPy LabStemPy Lab
Is the beam balanced? New Physics
High School (9–10) · Rotational Motion

You will write three small functions that apply the principle of moments. The idea. The moment of a force is the force times its distance from the pivot. A beam balances when the total moment on the left equals the to…

StemPy LabStemPy Lab
A pollution calculator New Chemistry
High School (9–10) · Chemical Reactions

You will write four functions for the first two lessons. One finds the carbon dioxide from the complete combustion of methane. One finds the carbon monoxide if all of the methane burns incompletely. One finds the calc…

StemPy LabStemPy Lab
Modulus equations by cases New Mathematics
High School (9–10) · Graphs of Functions

You will solve |ax + b| = cx + d by cases, and keep only the answers that really work. Your tasks. In candidates, return the two candidates from the two cases: (d - b)/(a - c) and (-d - b)/(a + c). In works, return Tr…

StemPy LabStemPy Lab
Reading growth readings New Biology
High School (9–10) · Organisms and Populations

You will write functions that read a list of counts of cells made at equal times. The idea. The change between two readings is the later count minus the earlier count. The phase follows the sign and size of the change…

StemPy LabStemPy Lab
An angle toolkit Python Programming
High School (11–12), High School (9–10), Undergraduate, General · Trigonometry and Waves by Computer

You will write three small functions for angles: one that converts degrees to radians without math.radians, one that finds the quadrant of an angle, and one that returns the point of the unit circle at an angle. The i…

StemPy LabStemPy Lab
An interval for a proportion New Statistics & Data Science
High School (9–10), High School (11–12), Undergraduate, General · Learning from Samples

You will write the 95% interval for a proportion, with a check of its conditions. The idea. The estimate is p = countn. The margin is 1.96√(( p(1 - p))/(n)). The formula is trusted only with at least 10 successes and…

StemPy LabStemPy Lab
Scalars, vectors and resultants New Physics
High School (9–10) · Units and Measurement

You will write three small functions about scalar and vector quantities. The idea. A scalar has size only. A vector has size and direction. Two vectors at right angles have a resultant given by Pythagoras, and its dir…

StemPy LabStemPy Lab
Page 1 of 51
…

Showing 1–25 of 1258