Challenge
Manifest line
…the tuple has four values and only three names. Fix the unpacking and add the module to the line: CG-0042 | Water filter cartridges | 18.5 kg | Node 2
8 results
Challenge
…the tuple has four values and only three names. Fix the unpacking and add the module to the line: CG-0042 | Water filter cartridges | 18.5 kg | Node 2
Challenge
Write average(*values), which accepts any number of numbers, call it with loose values and with a list unpacked by *, then add a keyword-only decimals option after *values and return None when there…
Challenge
Extend format_log() 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
Print each sensor name with its reading by looping over two lists together with zip(), then add a third list of units and warn when the lists don't have the same length, since zip() quietly stops at…
Challenge
Go through a block of telemetry line by line with splitlines(), split each line at the commas and print the sensor and value, then unpack the four fields and show the clock time too.
Challenge
Store the Perseverance landing site as a (lat, lon) tuple, unpack it into two variables in one line and print both to four decimals, then show it the way maps do, with N, S, E and W.
Challenge
…operator, so it is skipped too. One try, with the reason Unpacking a line with too few fields raises ValueError too. Drop the length check and let one try cover both the unpacking and the conversion…
Challenge
…and extend() it with each page. Then loop over launches , unpacking each pair: for mission, outcome in launches: . Fetch until a short page A real client doesn't know how many pages there are. It asks…