Challenge
Shared default list
…sample already in it, and by the end of the week every new log held every sample ever taken. Predict what the program prints, find out where the old samples come from, fix the default, then write a…
Showing 21–30 of 32
Challenge
…sample already in it, and by the end of the week every new log held every sample ever taken. Predict what the program prints, find out where the old samples come from, fix the default, then write a…
Challenge
…yet. Read it and decide what it will print on its first line. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to…
Challenge
…"Telemetry from CSV", the error handling from "Survive bad lines", the limits from the alert checks and the JSON from "JSON out". The ground station's export arrives every few seconds. Your program…
Challenge
The feed parser from "Parse the whole feed" still reads two lines somebody pasted into the program. The ground station now delivers a proper export, telemetry.csv , with a header row, and it changes…
Challenge
…what differs, call it three different ways, then add a new priority parameter without breaking any existing call.
Challenge
…works: a dict, and counts.get(level, 0) + 1 to start each new level at 0. That pattern comes up so often that Python has a whole class for it. Swap it in, then use the one thing a plain dict can't do…
Challenge
…keeps one variable up to date instead of creating a new one for each step. Predict how -= and += change a value, follow the fuel through a whole sequence, then track a battery yourself. Predict and…
Challenge
…yet. Read it and decide what it will print on its first line. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to…
Challenge
…in a chain of nine elif branches, one per body, and every new destination means another branch. Turn the chain into a table without changing a single character of the output, then use the table for…
Challenge
…Kowalska, Lindqvist, Moreau sorted(signups) gives a new, sorted list and doesn't touch signups . ", ".join(...) turns each list into one line. Small letters Two new crew members have names that start…