Challenge
Print the manifest
Print one cargo manifest line for every record in a list of dicts, reading each field by key, then add up the masses in the same loop for a total line.
Showing 1–10 of 150
Challenge
Print one cargo manifest line for every record in a list of dicts, reading each field by key, then add up the masses in the same loop for a total line.
Challenge
to_kelvin() prints its result instead of returning it, so the caller gets None. Predict the last line, find out what the function gives back, fix it with return, then write a conversion function that…
Challenge
The tank check is full of prints left over from debugging. Replace them with logging calls at the right levels, so debug records stay hidden until switched on, then give the fuel code its own named…
Challenge
Write a telemetry reading as a CSV row with print() and sep, add a header row, then switch to tabs for pasting into a spreadsheet. Real data formats from print().
Challenge
Make two prints share one line, like Uploading flight plan... done, by changing how print() ends. A Python challenge on print(end=...) for progress messages.
Challenge
Print status lines that a monitoring system reads character by character. A first Python challenge on exact output with print(), right in your browser.
Challenge
A Windows path prints wrong because \n and \t inside it turn into a new line and a tab. Fix it with a raw string, then handle a path that ends with a backslash.
Challenge
The pre-flight checklist script prints each check as it runs, and the launch director reads the result before giving the "go". Yesterday a developer was debugging it and left it in a mess: a real…
Challenge
…in the pattern The starter code gives you three values. Print them as one log line, in exactly this shape: [T+00:12:05] INFO Engines nominal Use an f-string: put f right before the opening quote, and…
Challenge
…line is missing its closing quote. Fix it so the script prints: Booting flight computer... Loading navigation data... Boot complete Missing bracket The next part of the boot script checks the sensors…