Challenge
Test the parser
…compare the whole record parse_line() returns with the dict you expect, so every field and its type are checked. When they all hold, print: All checks passed For example, a line from the feed…
Showing 21–30 of 37
Challenge
…compare the whole record parse_line() returns with the dict you expect, so every field and its type are checked. When they all hold, print: All checks passed For example, a line from the feed…
Challenge
Sort launches by date with sorted() and a small function that returns each launch's date, then sort the cargo manifest heaviest first with a key function and reverse=True.
Challenge
…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.
Challenge
…no board at all. Predict what happens, find out what the dict really holds, fix it, then build a board that copes with any missing field. Predict and run Don't run the code yet. Read it and decide…
Challenge
…09:33:05 COMMS Signal weak (x2) Keep the groups as dicts in a list, groups , with first , last , source , message and count , and a dict from (source, message) to the newest group for that alert…
Challenge
…output exactly as it is now: parse_feed(feed) returns a dict from each sensor to its list of values, as floats, in order; summary_line(sensor, values) returns one report line: the average rounded to…
Challenge
…<minjun.kim@example.org> Keep the emails seen so far in a dict, email -> name , so a duplicate can say whose it is.
Challenge
…6 Tanaka: 6 Okafor: 4 Bondarenko: 5 Keep the count in a dict, shifts_done , and the last person on duty in previous .
Challenge
…the output exactly the same, then put the waypoints in a dict and find the nearest one with the same function.
Challenge
From today's passes over four ground stations, collect every contact window longer than 8 minutes into one list, sorted by time, then find the longest stretch with no station in contact, counting…