Challenge
Mission config
…and whether this is only a dry run. Each setting is a different kind of value, and Python treats each kind differently. This challenge works in three steps. First you predict what some code prints and…
Showing 11–17 of 17
Challenge
…and whether this is only a dry run. Each setting is a different kind of value, and Python treats each kind differently. This challenge works in three steps. First you predict what some code prints and…
Challenge
…starts with that line, because the same code can behave differently in different versions. Python can tell you itself. Write the first lines of a bug report for the Python One flight software, filled…
Challenge
…that exact count, and any other order of calls gives a different one. Kinds of glitch For each glitch, pick its kind with random.choice(KINDS) , right after the check that found it, count the kinds in…
Challenge
…pressure, on which orbit? Every subsystem wants to attach different details, and nobody wants a format_log() with fifty optional parameters. Let the function take whatever fields the caller has, then…
Challenge
Cargo records arrive from several warehouses, typed by different people. Before an item goes on the manifest, it has to pass a check, and when it fails, the warehouse needs to know everything that is…
Challenge
…and its state, one per line. Because the names are all different lengths, the states end up scattered across the screen, and a HOLD is easy to miss. Line the states up in a column. Format specs can…
Challenge
…Mission control online and Mission Control online are two different lines, and one extra space is enough to raise an alarm. Make the console say exactly what the monitor expects. Status line The…