Read the traceback
The engine temperature report stopped working after a tidy-up. Python didn't just give up, though: it printed a traceback, a short report of where the program was when it failed.
Read it, note what it tells you, and fix the bug exactly where it points.
Finish stage 1 to unlock this stage.
Run the program. In the console, Python prints the traceback:
File "script.py", line 20 File "script.py", line 16, in average_kelvin File "script.py", line 10, in to_kelvin KeyError: 'temperature_c'
Read it from the bottom: the last line is the error, and the File line just above it is where it happened. Fill in error_type, crash_function and crash_line at the end of the program, then fix the bug on that line so the program prints:
Average: 695.0 K
Fix the function, not the data: the readings come from the sensors as they are.
Finish stage 1 to unlock this stage.
The report now covers each pass, and the newest export sends one temperature as text. Pass 1 prints, then the program stops with a longer traceback. Count its File lines into frames, store the error's name in error_type, and fix the bug on the line the lowest File line names, so it prints:
Pass 1: 695.0 K Pass 2: 695.7 K
The data stays as it is: make the function accept a temperature sent as text.
Hints
Separate arguments with commas. They're passed on every Run as sys.argv[1:].