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.
Showing 11–19 of 19
Challenge
…only the WARN and ERROR entries with append(), then let a minimum level decide what counts, the way logging tools filter by severity.
Challenge
…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…
Challenge
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…
Challenge
…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…
Challenge
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…
Challenge
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.
Challenge
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.
Challenge
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…
Challenge
…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…