Challenge
Sensible defaults
…call it three different ways, then add a new priority parameter without breaking any existing call.
8 results
Challenge
…call it three different ways, then add a new priority parameter without breaking any existing call.
Challenge
…add a new docking rule as one more guard with a default parameter.
Challenge
…the total, then write a function that uses only its parameters.
Challenge
…and what the reserve means, then add type hints for its parameters and return value; the tests read both from the function itself.
Challenge
…says a launch pad is flying. Predict the line, find which parameter got which value, fix it with keyword arguments, then make calls that can't be swapped.
Challenge
…and nobody wants a format_log() with fifty optional parameters. Let the function take whatever fields the caller has, then feed it fields from dicts. **fields Let format_log() take any extra keyword…
Challenge
…. Modify. Pass the count into the function as a second parameter, return the new count, and store it at each call, without global . It must print: Lumen-3 launched, 1 today Tern-5 launched, 2 today…
Challenge
…level, msg): , with return f"..." inside, using its own parameter names. Then print(format_log(elapsed, level, message)) . One change for every line The function is now used for a whole orbit's…