Results for “min”

Showing 21–30 of 38

  1. 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
  2. Article Python Fundamentals

    Variables and data types in Python

    …# km "inclination": 51.6, # degrees "period": 92.68, # minutes } # Crew roster crew_members = [ "Sarah Connor", "John Smith", "Maria Garcia", "Yu Chen" ] # Mission checkpoints (immutable)…

  3. 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
  4. 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
  5. 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