Interactive, runnable Python. Edit the code, run it in your browser, no setup required.
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…