Challenge
Numbered checklist
Print a pre-flight checklist numbered from 1 with enumerate(list, start=1), then tick off the items the crew has already done with [x] and leave the rest as [ ].
Showing 41–50 of 150
Challenge
Print a pre-flight checklist numbered from 1 with enumerate(list, start=1), then tick off the items the crew has already done with [x] and leave the rest as [ ].
Challenge
…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
…[-5:], as a dashboard does, then add a new reading and print how much the level changed across the window.
Challenge
…(id, item, mass_kg) tuple into three named variables and print a cargo manifest line, then fix the ValueError when the manifest adds a fourth field.
Challenge
Print the roster A–Z for a report with sorted() while the sign-up order stays exactly as it was, then sort names like de Vries and van Dijk correctly with key=str.lower.
Challenge
…map with ** 2 and ** 0.5, then add a third waypoint and print each leg and the length of the whole route.
Challenge
…from "Alert level" so a sensor that didn't answer, None, prints NO DATA instead of crashing, without treating a real 0 as missing, then do the same for an empty field in a telemetry line.
Challenge
…is hiding somewhere inside it. Predict what the program prints, find out what the except is catching, and make it catch only what it should. Predict and run Don't run the code yet. Read it and decide…
Challenge
…where 300 kg of propellant went. Predict what the program prints, find the second fuel_kg , fix the function, then write one that can't fall into the same trap. Predict and run Don't run the code yet…
Challenge
…that were never really taken. Predict what the program prints, find out how the preview reached the stored list, fix the function, then write another one that leaves its input alone. Predict and run…