Results for “sorted”

Showing 11–20 of 20

  1. Challenge

    Airlock permissions

    …permission in needed . If not, print what is missing, sorted: Kowalska can't depressurise the airlock: missing eva_certified needed <= granted is True when every item of needed is in granted . needed…

    Write the code Medium 2 stages sets subset difference permissions
  2. Challenge

    Undo and history

    Extend the working cargo console: record every change to the hold in a history list and show it with a history command, then add undo, which takes the last change off the history and reverses it.

    Write the code Hard 2 stages project lists stack append
  3. Challenge

    Log analyser

    Turn the launch-day mission log into answers: parse each line into a dict, count the entries per level and per hour, find the first ERROR, then rank the subsystems by how many warnings they raised.

    Write the code Hard 3 stages project logs parsing Counter
  4. Challenge

    Config loader

    Load the downlink module's JSON settings over a copy of the defaults, check each value's type and range and report every problem in one go, then wrap it all in a load_config() that never crashes, even…

    Write the code Hard 3 stages project json configuration validation
  5. Challenge

    Statistics module

    Refactor the temperature summary: delete the hand-written mean() and median() and use statistics.mean() and statistics.median() instead, then add the standard deviation and handle passes with too few…

    Fix the code Easy 2 stages statistics mean median stdev
  6. Challenge

    JSON out

    …what False , None and Toruń turned into. Readable letters, sorted keys Keep Toruń readable with ensure_ascii=False , and sort the keys with sort_keys=True , so that two days' files line up when…

    Write the code Easy 2 stages json json.dumps modules import
  7. Challenge

    Seeded simulation

    …count the kinds in a dict called by_kind , and print them sorted after the total: Glitches in 100 readings: 5 DROPOUT: 3 SPIKE: 2 Call random.choice() only for glitches. Look at the total: it is no…

    Write the code Easy 2 stages random random.seed random.choice simulation
  8. Challenge

    Duplicate events

    …than once. Collect them in a second set and print them sorted, or none : EV-1001 Hatch closed EV-1002 Cabin pressure nominal EV-1003 Abort system armed EV-1004 Switched to internal power Duplicates…

    Write the code Medium 2 stages sets add in deduplication