Challenge
Log analyser
…they raised, numbered from 1: Warnings by subsystem: 1. POWER: 3 2. GNC: 2 3. COMMS: 1 enumerate(warnings.most_common(), start=1) gives the rank and each (subsystem, count) pair; unpack them as rank…
7 results
Challenge
…they raised, numbered from 1: Warnings by subsystem: 1. POWER: 3 2. GNC: 2 3. COMMS: 1 enumerate(warnings.most_common(), start=1) gives the rank and each (subsystem, count) pair; unpack them as rank…
Challenge
…Alerts Uptime ------------------------------------------ POWER OK 3 99.80% GNC WARN 2 97.25% PROP OK 0 100.00% COMMS DEGRADED 2 94.60% THERM OK 0 99.95%…
Challenge
…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() , skip an event whose ID is in seen , and…
Challenge
…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 them in the loop: for number…
Challenge
Write problems(item), which lists everything wrong with one cargo item: missing fields, a mass that isn't a number, is 0 or is over the limit. Print a pass or fail line per item, then catch duplicate…
Challenge
…root. Distance A to B: 600.0 m ** raises a number to a power: 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…
Challenge
…on Python One runs a short boot script every time it powers on. Last night someone edited the script in a hurry, and now the computer won't start: Python refuses to run the file at all. When a single…