Challenge
Config loader
…report every problem in one go, then wrap it all in a load_config() that never crashes, even on broken JSON.
Showing 1–10 of 14
Challenge
…report every problem in one go, then wrap it all in a load_config() that never crashes, even on broken JSON.
Challenge
A config file says dry_run is False, yet bool("False") turns it into True and the engine simulates instead of firing. Predict it, find out why, compare the text instead, then read yes/no settings…
Challenge
Predict, investigate and extend a mission config held in variables: text, whole numbers, decimals and True/False. A PRIMM challenge on Python data types.
Challenge
…station keeps its telemetry on a Windows computer, and a config script tells the software where to save it. Someone wrote the path the way Windows shows it, and this is what the script printed…
Challenge
Make abort(reason, *, confirm) refuse to run unless confirm=True is passed by name: a bare * makes confirm keyword-only and required, then an is True check refuses values that are merely truthy, such…
Challenge
Build a user's settings by copying the defaults and laying their own values on top with update(), so any setting they haven't changed falls back, then warn about unknown keys instead of saving them.
Challenge
…call methods too: {sensor_id.lower()} . From a name The configuration form gives sensors names like Star Tracker A , and the time of the first reading as a timestamp. Build the same kind of file name…
Challenge
…received 10:00 Course correction burn: 12 s 10:20 Burn confirmed by ground control 11:00 Science block begins End of log Pasted from a chat The next day, the flight engineer pasted one line into the…
Example
While loop executes as long as condition is true. Controlling iteration with condition.
Example
Union, intersection and difference of sets. Mathematical operations from set theory.