Results for “config”

Showing 1–10 of 14

  1. Challenge

    Flag from config text

    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…

    Fix the code Easy 3 stages bool if else config
  2. Challenge

    Mission config

    Predict, investigate and extend a mission config held in variables: text, whole numbers, decimals and True/False. A PRIMM challenge on Python data types.

    Write the code Easy 3 stages variables data types int float
  3. Challenge

    Path in a config

    …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…

    Fix the code Easy 2 stages raw strings escape sequences paths print
  4. Challenge

    Confirm by name

    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…

    Write the code Medium 2 stages functions keyword-only arguments * safety
  5. Challenge

    Settings with defaults

    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.

    Write the code Medium 2 stages dictionaries copy update defaults
  6. Challenge

    File name from data

    …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…

    Write the code Easy 3 stages strings f-strings lower replace
  7. Challenge

    Read the error

    …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…

    Fix the code Easy 3 stages SyntaxError IndentationError error messages debugging