Results for “sys”

Showing 1–10 of 15

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

    Mission Control online

    Print status lines that a monitoring system reads character by character. A first Python challenge on exact output with print(), right in your browser.

    Write the code Easy 2 stages print output strings beginner
  3. Challenge

    Duplicate events

    …Hatch closed EV-1002 Cabin pressure nominal EV-1003 Abort system armed EV-1004 Switched to internal power Duplicates dropped: 2 Keep the IDs you have already printed in a set: start with seen = set()…

    Write the code Medium 2 stages sets add in deduplication
  4. Challenge

    Numbered checklist

    …1. Seal the hatch 2. Check cabin pressure 3. Arm the abort system 4. Switch to internal power 5. Get a go from Mission Control enumerate(checklist, start=1) gives pairs of a number and an item. Unpack…

    Write the code Easy 2 stages for loop enumerate start lists
  5. Challenge

    Logging instead of print

    The tank check is full of prints left over from debugging. Replace them with logging calls at the right levels, so debug records stay hidden until switched on, then give the fuel code its own named…

    Fix the code Medium 2 stages logging debug info warning
  6. Challenge

    Print the manifest

    …line" you printed one item from a tuple. The logistics system now exports the whole manifest as a list of dicts, one per item, with an ID, a name, a category and a mass. The loading crew wants it…

    Write the code Easy 2 stages dictionaries lists of dicts for loop formatting
  7. Challenge

    Validate a command

    Read a console command with input(), accept start, stop and status in any case with an if/elif chain, print Unknown command for anything else, then handle empty input and show what was typed.

    Write the code Easy 2 stages if elif else input
  8. Challenge

    Summary function

    …pass. Now the dashboard, the daily report and the alert system all need those numbers, each in its own format, for every pass, including the ones where the sensor sent nothing. Write one function that…

    Write the code Medium 2 stages functions return dictionaries min