Challenge
Confirm by name
…out, and return the refusal when it isn't true. The calls print: ABORT: Cabin pressure falling Abort refused: pass confirm=True With the * in place, abort("Test", True) stops with a TypeError , and so…
Showing 31–39 of 39
Challenge
…out, and return the refusal when it isn't true. The calls print: ABORT: Cabin pressure falling Abort refused: pass confirm=True With the * in place, abort("Test", True) stops with a TypeError , and so…
Challenge
…config as a copy of DEFAULTS , fill in what was saved, and print every setting in name order, with the value written as JSON: downlink_rate_kbps = "256" log_level = "INFO" log_levl = "DEBUG" retries =…
Challenge
…the reason for anything else. Then try every command and print OK and the result, or REJECTED , the command in quotes and the reason: OK ('burn', 12.5) OK ('burn', 3.0) OK ('burn', 0.5) REJECTED…
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
Write convert(), which looks a unit pair up in a table of factors, works the other way round by dividing, and refuses unknown units or missing pairs with a clear ValueError, then extend the table with…
Challenge
…from "Telemetry pipeline" has been split into small functions, ready for the ground station to run unattended. Before it goes live, the team wants tests: whoever changes the pipeline next must find…
Challenge
…Don't run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to…
Challenge
…and median() , add import statistics at the top, and print the same two lines with statistics.mean() and statistics.median() : Mean: 418.8 C Median: 413.8 C The output doesn't change: that is the…
Challenge
…the summary. Summarise the readings with Python's built-in functions, then make sure the summary survives a pass with no readings at all. Min, max, mean Print the lowest and the highest reading, and…