Results for “average”

Showing 1–10 of 12

  1. Challenge

    Wrong average

    An average of three hull temperatures comes out at 47 °C when every sensor reads about 21. Predict it, find where the brackets are missing, fix it, then work out an average speed.

    Fix the code Easy 3 stages order of operations brackets average debugging
  2. Challenge

    Read 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…

    Fix the code Easy 2 stages errors traceback KeyError TypeError
  3. Challenge

    Legacy script

    …summary_line(sensor, values) returns one report line: the average rounded to one decimal place, the highest value, and HOT when it is over 450, otherwise OK . Then print the report with a loop over a…

    Fix the code Hard 2 stages project refactoring functions testing
  4. Challenge

    Daily mission report

    …and a totals line with the alerts added up and the average uptime: ========================================== DAILY MISSION REPORT Lumen-3 · 2026-11-05 ==========================================…

    Write the code Medium 2 stages project formatting f-strings alignment
  5. Challenge

    Edge cases

    Write assert checks for mean(): an ordinary list and a list with one value first, then the edge cases, an empty list that should give None and lists with negative values, so broken copies of the…

    Write the code Medium 2 stages testing assert edge cases None