Challenge
Index by ID
The crew ask for cargo by ID all day long: "where is CG-0045, and how heavy is it?". Searching the whole manifest list for every question works for six items, but the real manifest has thousands…
Showing 111–120 of 136
Challenge
The crew ask for cargo by ID all day long: "where is CG-0045, and how heavy is it?". Searching the whole manifest list for every question works for six items, but the real manifest has thousands…
Challenge
…Check an ID against the list, then make the check work for IDs typed by hand. On the list? Print whether the payload is on the approved list: PL-204 approved: True payload_id in approved gives True or…
Challenge
….png or .jpg images .csv telemetry anything else rejected For the camera image in the starter code: cam-1_2026-03-14.png -> images/ Use endswith() for each extension, or to accept two, and store the…
Challenge
…a photo and a backup file, and the archive's import broke for a day. Check every path before it's accepted, then make the checks work for paths typed on a Windows PC. Check the ends Print whether the…
Challenge
…condition at a time, each inside the last, and the reason for a refusal now sits four levels deep, at the far end of an else whose if is off the top of the screen. Flatten the function without…
Challenge
…distance even light takes minutes. Work out the delay for today's distance: first in seconds, then as minutes and seconds, then for the round trip. Python lets you write big numbers with underscores…
Challenge
…display draws each tank as a gauge of 10 segments: one # for every full 10% and a - for the rest. Tank B: [#######---] 73.4% Work out how many full tens the percentage has, then repeat "#" that many…
Challenge
…answer. Only a few need something else, like more retries for deploying the solar array, or a short timeout for an abort, where waiting is worse than failing. Give the uplink function sensible…
Challenge
…launch["name"] . Inside an f-string, use single quotes for the key: {launch['name']} . Everything in the response Before relying on an API, developers look at a whole response. After the three lines…
Challenge
The docking check for the station works, but it has grown into three if statements inside each other, with HOLD written out three times. Every new rule would push the code further to the right…