Challenge
Summary function
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.
Showing 1–10 of 19
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
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
…After launch the screen should count up: T+00:05:00 five minutes in. Move the calculation into countdown(launch, now) , which returns the text with T- before launch, and at launch itself, and T+ after…
Challenge
…stations, collect every contact window longer than 8 minutes into one list, sorted by time, then find the longest stretch with no station in contact, counting overlapping passes only once.
Challenge
Split 100,000 seconds of mission time into hours, minutes and seconds with // and %, pad it to a 27:46:40 clock, then add days in the DDD/HH:MM:SS format.
Challenge
…time without forgetting the 8 bits in a byte, show it in minutes and seconds, then count the ground station passes.
Challenge
…to get the radio delay to a Mars orbiter, show it in whole minutes and seconds, then add the round trip without doubling a rounding error.
Challenge
…battery is under 20% or contact has been lost for over 10 minutes, using or, then name the rule that fired with boolean variables and an if/elif chain.
Challenge
…Priya Sharma <priya.sharma@example> <crew@example.org> Min-Jun Kim <minjun.kim@example.org> Kenji Tanaka <k.tanaka@example.org> Tomasz Nowak <tomasz nowak@example.org> name.split() splits on any run…
Challenge
…logged in full too. The last line must be: Orbit 10: T+920 min Make: Every third orbit The ground station sees the ship on every third orbit: 3, 6, 9 and so on. Print a line for each of those orbits…