Challenge
Command parser
…the reason for anything else. Then try every command and print OK and the result, or REJECTED , the command in quotes and the reason: OK ('burn', 12.5) OK ('burn', 3.0) OK ('burn', 0.5) REJECTED…
Showing 141–150 of 237
Challenge
…the reason for anything else. Then try every command and print OK and the result, or REJECTED , the command in quotes and the reason: OK ('burn', 12.5) OK ('burn', 3.0) OK ('burn', 0.5) REJECTED…
Challenge
…readings, count a glitch when random.random() < 0.05 , and print the count: Glitches in 100 readings: 7 Call random.random() exactly once per reading, after the seed: the check expects that exact…
Challenge
…with newline="" , loop over csv.DictReader(csv_file) , and print each row in the same format as before: 09:30:05 ENG-2: 412.5 C 09:30:05 TANK-1: 78.3 % 09:30:10 CABIN: 101.2 kPa 09:30:10 ENG-2: 415.0…
Challenge
…loose values, then with the readings list unpacked, and print: Three spot checks: 401.0 The whole pass: 419.5 Inside the function, values is a tuple, so sum() and len() work on it. In the second call…
Challenge
…the racks. Sort both lists by one of their fields. By date Print the launches from the earliest date to the latest: 2026-11-05 Lumen-3 2026-11-21 Kestrel-7 2026-12-01 Tern-5 2027-01-18 Polaris Cargo 4…
Challenge
…the crew member holds every 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…
Challenge
…the mass of each category in a dict called totals , then print each category with its total, in the order the categories first appear: life support: 49.8 kg spares: 2.4 kg food: 67.0 kg crew: 3.4 kg…
Challenge
…with only the WARN and ERROR entries, in log order. Then print how many there are, and each one: Alerts: 4 [T+00:12:05] WARN Battery 3 temperature high [T+00:14:47] ERROR Fuel valve 2 not responding…
Challenge
…By extension Choose the folder by the file's extension and print where it goes: .png or .jpg images .csv telemetry anything else rejected For the camera image in the starter code: cam-1_2026-03-14.png…
Challenge
…work for paths typed on a Windows PC. Check the ends Print whether the path starts with telemetry/ and whether it ends with .csv : In telemetry/: True CSV file: True path.startswith("telemetry/") and…