Results for “min”

Showing 11–19 of 19

  1. Challenge

    Filter the log

    …only the WARN and ERROR entries with append(), then let a minimum level decide what counts, the way logging tools filter by severity.

    Write the code Medium 2 stages for loop lists append filtering
  2. Challenge

    Launch schedule digest

    …holds Add the time left to each launch, as days, hours and minutes, and mark a launch on hold: Upcoming launches: 4 2026-11-05 09:10 UTC Aurora Relay (KASA) in 0d 01h 10m 2026-11-05 14:30 UTC Lumen-3…

    Write the code Medium 3 stages project json datetime timedelta
  3. Challenge

    Last five readings

    The cabin CO2 sensor sends a reading every minute, and the list of readings only grows. The crew's dashboard doesn't want all of them: it shows the five most recent, so a change is easy to spot. Slice…

    Write the code Easy 2 stages lists slicing negative slice append
  4. Challenge

    Log line format

    …line from them: [T+00:12:05] INFO Engines nominal A plain {minutes} prints 12 , but {seconds} prints 5 , not 05 . Add a format spec after a colon: {seconds:02} means "at least 2 characters wide…

    Write the code Easy 2 stages f-strings print logs formatting
  5. Challenge

    Alert deduplicator

    The monitoring system raises the same alert over and over. Group repeats of an alert that come within 60 seconds of the first into one line with a count, in the order they first appeared, then add the…

    Write the code Hard 2 stages project dictionaries tuples as keys grouping
  6. Challenge

    Missing index

    readings[5] on a list of five readings stops with an IndexError. Predict it, work out the valid indexes with len(), fix it with [-1], then print the first, middle and last readings for any length.

    Fix the code Easy 3 stages lists indexing IndexError len
  7. Challenge

    Check every reading

    Extend the OK/WARN/CRITICAL check from Alert level so a for loop runs it over every temperature in a list, then count the WARN and CRITICAL readings for a summary line.

    Write the code Easy 2 stages for loop lists if elif
  8. Challenge

    Launch commit criteria

    Minutes before launch, the launch director polls the teams. The launch only goes ahead if every single rule is met: the wind is within limits, there is no lightning nearby, and range safety reports…

    Write the code Easy 2 stages if else and not
  9. Challenge

    Waypoint distance

    …dx ** 2 is dx squared, and ** 0.5 is the square root. Mind the brackets: ** runs before + . A route The rover won't stop at B: the route goes on to waypoint C, 780 m east and 920 m north. Add c_x and…

    Write the code Easy 2 stages exponent square root ** Pythagoras