Challenge
Prove the fix
…shared default list, then add checks that a log passed in is still the one that gets the sample, so a "fix" that breaks that can't pass either.
Showing 11–20 of 26
Challenge
…shared default list, then add checks that a log passed in is still the one that gets the sample, so a "fix" that breaks that can't pass either.
Challenge
The telemetry pipeline is now split into parse_row() and check_limits(). Write assert tests for both, good rows, rejected rows and readings right at a limit, so that each of three planted bugs makes…
Challenge
status_light() returns None for Scrub because that branch sets a variable but never returns it. Predict the last line, find which statuses give None, make every path return, then write a function…
Challenge
…has a try and an except , so it can't crash, but the bug is hiding somewhere inside it. Predict what the program prints, find out what the except is catching, and make it catch only what it should…
Challenge
…3.7 m/s², a 92.5 kg astronaut weighs 342 N A body that isn't in the table still prints the no-data line: GRAVITY_M_S2.get(body) gives None for a missing key, just like the old else . The whole table…
Challenge
…you where to look. The fifth doesn't stop anything, and it is the most dangerous one. Make it run Run the program, read the error, fix it, and run again, until it runs to the end. Four bugs stop it: a…
Challenge
…10:00: 4 11:00: 5 Two Counter s do the counting; the hour is the first two characters of the time, plus ":00" . The first error Find the first ERROR entry and print its time, subsystem and message, or…
Challenge
…then count what stayed with an intersection and print none for an empty change.
Challenge
…message) to the newest group for that alert. to_seconds() is given. Time ranges and a summary For a line that collapses several alerts, show the time of the first and the last, and finish with how…
Challenge
…the sector ahead and sends back a small map: each row is a string, # marks debris and . is clear space. The flight dynamics team needs the exact position of every piece. Scan the grid for debris, then…