Activity 01
Pair Programming: Survey Pie Chart
Pairs survey class preferences on subjects, tally percentages, and code a pie chart using matplotlib.pyplot.pie(). They add labels, explode a slice, and present findings. Discuss why colours aid readability.
Justify the use of a pie chart for representing parts of a whole.
Facilitation TipDuring Pair Programming: Survey Pie Chart, ensure both students alternate roles every 10 minutes so that both engage with coding and discussion equally.
What to look forProvide students with a small dataset (e.g., class survey on favourite subjects). Ask them to write Python code to generate a pie chart representing the proportions and then answer: 'Would this pie chart be effective if there were 15 subjects?' Justify your answer.