Challenge
Readings summary
Summarise a list of engine readings with min(), max() and a mean from sum() / len(), then add the spread and make the summary cope with an empty list instead of crashing.
Showing 1–10 of 16
Challenge
Summarise a list of engine readings with min(), max() and a mean from sum() / len(), then add the spread and make the summary cope with an empty list instead of crashing.
Challenge
Write summarise(readings), which returns the count, min, max and mean of a list of readings as one dict, then make it handle a pass with no data and round the mean, so any program can use the summary.
Challenge
Turn the day's mission summary dict into JSON text with json.dumps() and indent=2, see what True, False and None become, then keep the station's Polish letters readable and sort the keys so the files…
Challenge
…for each engine. Restructure it into parse_feed() and summary_line() with the output unchanged to the character, then add assert tests that would catch either function breaking.
Challenge
Refactor the temperature summary: delete the hand-written mean() and median() and use statistics.mean() and statistics.median() instead, then add the standard deviation and handle passes with too few…
Challenge
…the code prints, find the leg that doesn't fit, fix the sum, then convert a lander's sensor readings yourself. Predict and run Don't run the code yet. Read it and decide what it will print. Write your…
Challenge
…readings outside each sensor's limits, and save a JSON summary for the dashboard.
Challenge
…in a list, then count the WARN and CRITICAL readings for a summary line.
Challenge
…fix the count when a message mentions WARN itself, then summarise the log by level.
Challenge
…order they first appeared, then add the time range and a summary.