Challenge
Confirm by name
Make abort(reason, *, confirm) refuse to run unless confirm=True is passed by name: a bare * makes confirm keyword-only and required, then an is True check refuses values that are merely truthy, such…
Showing 31–39 of 39
Challenge
Make abort(reason, *, confirm) refuse to run unless confirm=True is passed by name: a bare * makes confirm keyword-only and required, then an is True check refuses values that are merely truthy, such…
Challenge
A call to schedule_launch() passes the pad where the rocket belongs, and the board says a launch pad is flying. Predict the line, find which parameter got which value, fix it with keyword arguments…
Challenge
…the file back and print it, then add an append_entry() function that adds lines at the end without wiping what is there.
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
…(ISRO) 2026-11-20 18:45 UTC Polaris Cargo 4 (NASA) A small function such as window(launch) , returning the parsed datetime, works for the comparison and as the key for sorted() . strftime("%Y-%m-%d…
Challenge
…has no brackets, because it's a value you read, not a function you call. The test shows the platform as <platform> .
Challenge
…The check looks for the module and makes sure your own functions are gone. Spread, and too little data Now there are three passes. For each, print the mean, the median and the standard deviation…
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…
Challenge
…see your prediction next to what Python printed. The two functions handle the decimals differently. What does each one give for 1499.7? Investigate and modify Investigate. Store what int(2.9) gives in…