Results for “flags”

9 results

  1. Challenge

    Retry the uplink

    …range(1, MAX_ATTEMPTS + 1) , break on success, and use a flag such as sent to tell the two endings apart. Back off between tries Retrying at once rarely helps a struggling link. Wait 2 seconds after…

    Write the code Medium 2 stages for loop range break retry
  2. Challenge

    First error

    Scan the mission log for the first ERROR entry, print its line number with enumerate() and stop there with break, then report how many lines were checked, or that there were no errors at all.

    Write the code Easy 2 stages for loop break enumerate flags
  3. 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
  4. Challenge

    Shared default list

    …A fresh list every time Write new_record(sensor, value, flags=None) , which returns a dict with a fresh flags list whenever none is given. The program flags the first record, and the second must stay…

    Fix the code Medium 3 stages functions default values mutable defaults None
  5. Challenge

    Telemetry pipeline

    …rows with unknown sensors or broken values and say why, flag readings outside each sensor's limits, and save a JSON summary for the dashboard.

    Write the code Hard 3 stages project csv json files
  6. Challenge

    Mission config

    …will appear: the crew size, the fuel load and the dry-run flag. Investigate and modify Investigate. Every value has a type: int for whole numbers, float for decimals, str for text and bool for True /…

    Write the code Easy 3 stages variables data types int float