Challenge
Live T-minus
…before launch, and at launch itself, and T+ after it, then print countdown(launch, datetime.now(timezone.utc)) . With the clock stopped five minutes after launch, the check expects: T+00:05:00 Pick…
Showing 131–140 of 150
Challenge
…before launch, and at launch itself, and T+ after it, then print countdown(launch, datetime.now(timezone.utc)) . With the clock stopped five minutes after launch, the check expects: T+00:05:00 Pick…
Challenge
…to True in except ValueError: , and assert it after. Then print: All checks passed Leave the function as it is. The hidden tests swap it for a version that doesn't raise at all, and one that raises…
Challenge
…check each call got a list with only its own sample. Then print: All checks passed Leave the function as it is. The hidden tests swap it for the old version with log=[] , and your checks must stop…
Challenge
…isn't a whole number, such as [1, 2] . When they all hold, print: All checks passed Leave the function exactly as it is. The edges Now the edges. Add checks that an empty list gives None (compare with…
Challenge
…OK, one for WARN and one for CRITICAL. When they all hold, print: All checks passed For example, assert alert_level(20) == "OK" . Leave the function exactly as it is: the hidden tests break copies of…
Challenge
…every field and its type are checked. When they all hold, print: All checks passed For example, a line from the feed, "2026-03-14T09:30:05Z,ENG-2,412.5,C" , should give {"time": "09:30:05", "sensor"…
Challenge
…Leave DEFAULTS unchanged, since every user shares it. Then print every setting: units: imperial language: en telemetry_rate_hz: 10 dark_mode: True alerts: all DEFAULTS.copy() makes a separate dict…
Challenge
…ID in lower case, an underscore, the date and .csv . Then print it: File: eng-2_2026-03-14.csv Inside an f-string's braces you can call methods too: {sensor_id.lower()} . From a name The configuration…
Challenge
…shows. Fill percentage Work out how full tank B is and print it as a percentage with one decimal place: Tank B: 73.4% Divide what's in the tank by what it can hold, then multiply by 100. Gauge The…
Challenge
…fired first. With the battery at 18% and contact fine, it prints the second line.