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
  • Computer 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 topics1336 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
Find the CMC from conductivity New Chemistry
High School (11–12) · Surface Chemistry

You will find the critical micelle concentration of a surfactant from conductivity readings, without numpy. The idea. Below the CMC the readings lie on one straight line, and above it on another, less steep one. The C…

StemPy LabStemPy Lab
Solving trigonometric equations New Mathematics
High School (9–10) · Trigonometric Functions and Graphs

You will solve x = k, x = k and x = k for 0^° ≤ x ≤ 360^° with a list of candidate angles. The function keep is given: it keeps the angles in range, rounds them to 1 decimal place, removes repeats and sorts them. Your…

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
From a truth table to an expression New Computer Science
High School (9–10) · Boolean Logic

You will turn an output column into a logic expression by the method of the lesson: one AND term for each row with X = 1, joined by OR. Your tasks. In term, return the AND term for one row. An input that is 1 is writt…

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
Coagulation values and the Hardy-Schulze rule New Chemistry
High School (11–12) · Surface Chemistry

You will turn the readings of a coagulation experiment into coagulation values, rank the electrolytes, and compare them with the sixth power rule. The idea. The coagulation value is the millimoles of electrolyte divid…

StemPy LabStemPy Lab
Moving particles New Mathematics
High School (9–10) · Vector Algebra

You will write the position, the speed and the meeting time of two particles as functions. Your tasks. In position, return the position (x, y) of a particle after time t, from its start and its velocity. In speed, ret…

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
A three-input truth table New Computer Science
High School (9–10) · Boolean Logic

You will code the circuit X = (A AND B) OR (NOT C) and build its truth table in the syllabus order. Your tasks. In circuit, return X for the inputs a, b and c. Set rows to the 8 input rows (a, b, c) in binary order. S…

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
Vmax and Km from enzyme readings New Chemistry
High School (11–12) · Surface Chemistry

You will analyse enzyme rates with the Lineweaver-Burk line, and then find the inhibition constant of a competitive inhibitor. The idea. (1)/(v) = K_mV_·1[S] + 1V_. The function line returns the slope and the intercep…

StemPy LabStemPy Lab
Counting with a condition New Mathematics
High School (9–10) · Permutations and Combinations

You will count arrangements and numbers by listing all of them with a condition, and compare with the rules of the lesson. Your tasks. Set together to the number of ways to seat the six people "ABCDEF" in a row so tha…

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
Name the gate from its column New Computer Science
High School (9–10) · Boolean Logic

You will write a function that names a two-input gate from its output column, and a function that builds the 8 rows of a three-input truth table in order. Your tasks. In name_gate, return the name of the gate in GATES…

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 catalyst and the Arrhenius equation New Chemistry
High School (11–12) · Surface Chemistry

You will write three short functions about the rate of a reaction with and without a catalyst. Assume the catalyst leaves the factor A unchanged. The idea. k = Ae^-E_a/RT. The ratio of the rate constants is e^Δ E/RT.…

StemPy LabStemPy Lab
Counting with loops New Mathematics
High School (9–10) · Permutations and Combinations

You will write the factorial, permutation and combination counts as functions, and check them against a list. Your tasks. In factorial, return n! with a loop. Remember that 0! = 1. In permutations_count, return ^nP_r…

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
Page 1 of 54
…

Showing 1–25 of 1336