Challenge
Mass by category
…(41%) crew: 3.4 kg (3%) spares: 2.4 kg (2%) sorted(totals, key=totals.get, reverse=True) gives the categories ordered by their totals. sum(totals.values()) is the whole load.
Showing 11–20 of 32
Challenge
…(41%) crew: 3.4 kg (3%) spares: 2.4 kg (2%) sorted(totals, key=totals.get, reverse=True) gives the categories ordered by their totals. sum(totals.values()) is the whole load.
Challenge
…they haven't changed falls back, then warn about unknown keys instead of saving them.
Challenge
…Lumen-3 Provider: JAXA Status: Go Read a value with its key in square brackets: launch["name"] . Inside an f-string, use single quotes for the key: {launch['name']} . Everything in the response Before…
Challenge
…in average_kelvin File "script.py", line 10, in to_kelvin KeyError: 'temperature_c' Read it from the bottom: the last line is the error, and the File line just above it is where it happened. Fill in…
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
Give send_command(cmd, retries=3, timeout=5.0) default values so callers only pass what differs, call it three different ways, then add a new priority parameter without breaking any existing call.
Challenge
…keep the station's Polish letters readable and sort the keys so the files compare easily.
Challenge
…hand. Last week someone typed "256" in quotes, misspelt a key and set twelve retries, and the module started with the wrong settings without a word. Write the loader that fills in what is missing…
Challenge
…counts.get() with collections.Counter, which starts every key at 0, then list the levels from most to least common with most_common().
Challenge
Print only the launches whose status is Go from a list of launch dicts, then collect the others with their status into one "not go yet" line, or none.