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
  • 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
Choose a topic to see its subtopics.12 labs
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
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 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
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
Same mean, different spread Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Spread of Data

Two classes both have a mean mark of 60. You will write the standard deviation and the range, and let the program say which class is steadier. Then it draws both classes on one number line. The idea. The standard devi…

StemPy LabStemPy Lab
Box plots of three classes Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Spread of Data

Three classes of eight students each took the same test. You will find the five numbers of each class, the interquartile range of each, and which class is the most spread out in its middle half. Then the program draws…

StemPy LabStemPy Lab
The three averages on a graph Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Averages: Mean, Median and Mode

A football team's goals in 20 matches are in a list. You will find the mode, the mean and the median, and mark all three on a bar chart of the goals. Then you add one freak match with 15 goals and see which averages m…

StemPy LabStemPy Lab
Drag the mean Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Averages: Mean, Median and Mode

Six friends have pocket money close together, from 21 to 26 rupees, and a seventh friend can have much more. You will write the mean and the median, then find how large the seventh amount must be before the mean is mo…

StemPy LabStemPy Lab
A bar chart and a pie chart Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Tables and Graphs

Forty students named their favourite subject. You will find the total, the angle of each pie slice and the order of the bars. Then the program draws the bar chart and the pie chart side by side. The idea. A slice's an…

StemPy LabStemPy Lab
How many bars in a histogram? Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Tables and Graphs

The pulse rates of 24 students, in beats a minute, all lie between 60 and 100. You will cut that range into equal groups, count the pulses in each group, and see what happens with too many groups. Then the program dra…

StemPy LabStemPy Lab
A class survey Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Data and Sampling

Fifteen students named their favourite season. You will count the answers, check the total and find the winner. Then the program draws each count as a row of hash signs, a bar chart made of text. The idea. A tally add…

StemPy LabStemPy Lab
How good is a random sample? Statistics & Data Science
Middle Stage (6–8), High School (9–10), High School (11–12), Undergraduate, General · Data and Sampling

A year group of 100 students has marks from 0 to 99, so the true mean is 49.5. You will draw samples by chance and see how close their means come. Then you compare small samples with large ones. The idea. A random sam…

StemPy LabStemPy Lab