Challenge
Flag from config text
…why, compare the text instead, then read yes/no settings typed by hand.
Showing 21–30 of 40
Challenge
…why, compare the text instead, then read yes/no settings typed by hand.
Challenge
…time and datetime.now(timezone.utc) instead of a number typed by hand, then turn it into a countdown() that counts up with T+ after launch.
Challenge
The logistics team typed the manifest for the next supply flight by hand, and the loading crew won't touch a crate until every line checks out. Last time, a typo in a mass sent a 61 kg battery pack to…
Challenge
…Change except: to except Exception as error: and print type(error).__name__ in it, to see what is really being caught. Store its name in hidden_error , and the number of readings that are really bad…
Challenge
Clean the crew sign-ups for the analogue mission: trim and capitalise names, lower-case emails, then reject sign-ups with no name or a broken email and drop duplicates by email, saying why for each…
Challenge
Point the feed parser from "Parse the whole feed" at telemetry.csv: read it with csv.DictReader, using the header row for the field names, then find the hottest temperature reading, comparing the…
Challenge
…of a number, and the check from "Alert level" stops with a TypeError in the middle of a pass. Extend your check so a missing reading is reported, not crashed on, then handle missing values in the…
Challenge
…before it's accepted, then make the checks work for paths typed on a Windows PC. Check the ends Print whether the path starts with telemetry/ and whether it ends with .csv : In telemetry/: True CSV…
Challenge
…and last week a crate was removed by mistake and had to be typed back in from memory. Extend the console with a history of changes, then an undo that uses it. A history of changes The console works as…
Challenge
…but response_text is text, and the program stops with TypeError: string indices must be integers . Turn the text into a dict with json.loads() , then add a line for crewed : Launch: Lumen-3 Provider…