Results for “min”

Showing 1–10 of 19

  1. 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.

    Write the code Medium 2 stages functions return dictionaries min
  2. 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.

    Write the code Easy 2 stages lists min max sum
  3. Challenge

    Live T-minus

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

    Write the code Medium 2 stages datetime datetime.now timezone countdown
  4. Challenge

    Ground pass planner

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

    Write the code Medium 2 stages project datetime timedelta sorting
  5. Challenge

    Duration formatter

    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.

    Write the code Easy 3 stages floor division modulo // %
  6. Challenge

    Downlink time

    …time without forgetting the 8 bits in a byte, show it in minutes and seconds, then count the ground station passes.

    Write the code Medium 3 stages input float bits and bytes round
  7. Challenge

    Signal delay

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

    Write the code Medium 3 stages division round // %
  8. Challenge

    Safe mode

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

    Write the code Medium 2 stages if elif or and
  9. Challenge

    Sign-up cleanup

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

    Write the code Medium 2 stages project strings strip split
  10. Challenge

    One orbit short

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

    Fix the code Easy 3 stages for loop range off-by-one step