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…
9 results
Challenge
…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…
Challenge
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.
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
…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…
Challenge
…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.
Example
While loop executes as long as condition is true. Controlling iteration with condition.
Challenge
…before the hold, break after the scrub line, and use a flag to decide about Liftoff! after the loop.
Challenge
…the inner loop over the rows, checking line[column] . A flag says whether the column was blocked.
Challenge
…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 /…