Challenge
Sort by a field
…date, then sort the cargo manifest heaviest first with a key function and reverse=True.
Showing 1–10 of 32
Challenge
…date, then sort the cargo manifest heaviest first with a key function and reverse=True.
Challenge
…from "Log formatter function" with **fields, so any extra keyword arguments are added to the line as key=value pairs, then pass whole dicts of fields into it with ** at the call.
Challenge
Reading launch["pad"] stops with a KeyError when the API hasn't assigned a pad yet. Predict it, check the keys with in, fix it with get() and a default, then print a list of launches with defaults for…
Challenge
…then sort names like de Vries and van Dijk correctly with key=str.lower.
Challenge
…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 as "yes".
Challenge
…line, find which parameter got which value, fix it with keyword arguments, then make calls that can't be swapped.
Challenge
…check has five bugs: a syntax error, a type error, a wrong key, an index out of range and a reversed decision. Read each error to fix the four that crash, then find the one that runs but gives the…
Challenge
…then let other code pick out one sensor's readings by key.
Challenge
…loose values and with a list unpacked by *, then add a keyword-only decimals option after *values and return None when there are no values.
Challenge
The monitoring system raises the same alert over and over. Group repeats of an alert that come within 60 seconds of the first into one line with a count, in the order they first appeared, then add the…