Unit 2 Task 2: Highest temperature this week

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Unit 2 Task 2 - Highest temperature this week

← Unit 2 tasks · Solution


A weather club records the daily high temperature (°C) for five days. Write a program that:

Skills: for, range, comparing values, tracking a “best so far” variable (you can start with None or the first reading).

Example: If the inputs are 18, 22, 19, 25, 20, the program should report that 25 is the largest.