Challenge
Entries per level
At the end of every orbit the flight director gets one line about the log: how many entries of each level it had. A sudden jump in warnings says more than any single entry. Count the entries per…
Showing 41–50 of 56
Challenge
At the end of every orbit the flight director gets one line about the log: how many entries of each level it had. A sudden jump in warnings says more than any single entry. Count the entries per…
Challenge
…is always first, and whoever joined last is at the end. The mission board shows who is in charge, who is newest and how many people are on board. Read those facts out of the list, then add the full…
Challenge
…indexes exist, fix it, then pick out readings at either end and in the middle. Predict and run Don't run the code yet. Read it and decide what it will print. Write your guess in prediction , at the…
Challenge
…each branch instead of printing it, and print once at the end: ENG-2: 412.5 °C, WARN Each branch sets level , and the single print() after the chain uses it.
Challenge
…reports the first one it finds; GO goes in the else at the end: Docking: HOLD, closing speed too high Docking: HOLD, misaligned Docking: HOLD, latches not ready Docking: GO Check the speed first, then…
Challenge
…then compare it in an if / elif chain, with else at the end. Helpful errors Make the errors helpful. For an empty answer, ask for a command; for an unknown one, repeat what was typed, without the…
Challenge
At the end of each orbit, the flight director reads a summary of the mission log: how many entries, and how many of them are warnings. A sudden jump in warnings is often the first sign that something…
Challenge
…plus its length, plus one for the space, and leave the end out. The time in brackets can grow longer, [T+100:02:00] , so work from position , not from a fixed number.
Challenge
…formatter". The order matters: round the seconds at the end instead, and a delay of 779.7 seconds turns into "12 min 60 s". Round trip A command can't be confirmed until the reply comes back, so…
Challenge
…Most of the time they agree. When they don't, a crate can end up a kilogram lighter on paper than on the scales. Predict where they differ, investigate a rule that surprises most programmers, then…