P5 · Functions & 2D Lists
Mastery progress
Read the scenario carefully and identify exactly what the question asks you to produce.
We have 6 sensor readings arranged in a 2 × 3 grid. We need to count how many readings are greater than the warning threshold.
Example
Let's try one together.
Click on the numbers that are above the threshold.
Tap the readings above the threshold.
Here's what we'll build
We will use the greater than operator > to check if a number is above the threshold.
This means: if reading is greater than threshold, then increase count by 1.
Understand the problem
Learn the Python idea
Plan the solution
Write the code
Test your code
Submit and complete
Exam Coach
Ages 14–16
Make sure you understand the mission using a simple example.
Exam skill focus
Complete this challenge
You'll learn
How to use a function
How to work with 2D lists
How to count using a condition
Still not sure?
Watch this 60 second explanation
Stuck?
You can ask for a hint at any time.