Challenge
Environment check
…Python version. Ask Python for it with the platform and sys modules and print it the way python --version does.
Showing 1–10 of 15
Challenge
…Python version. Ask Python for it with the platform and sys modules and print it the way python --version does.
Challenge
Print systems and their states in aligned columns with width specifiers like {name:
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
Print status lines that a monitoring system reads character by character. A first Python challenge on exact output with print(), right in your browser.
Challenge
…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()…
Challenge
…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…
Challenge
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…
Challenge
…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…
Challenge
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.
Challenge
…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…