Challenge
Mission Control online
…character by character. A first Python challenge on exact output with print(), right in your browser.
Showing 1–10 of 20
Challenge
…character by character. A first Python challenge on exact output with print(), right in your browser.
Challenge
…it into parse_feed() and summary_line() with the output unchanged to the character, then add assert tests that would catch either function breaking.
Challenge
…a weight report into named constants without changing the output, then write a Mars version with constants from the start.
Challenge
…then rename them so the code reads like a sentence. The output has to stay exactly the same. Predict and run Don't run the code yet. Read it and decide what it will print. Write your guess in…
Challenge
…gravity with a dict and one get() lookup, keeping the output exactly the same, then loop over the dict for a weight table.
Challenge
…a list of (name, level) pairs and one loop, keeping the output exactly the same, then add a fourth tank with a single list item and list the low tanks.
Challenge
…for three waypoints into distance_km(a, b), keeping the output exactly the same, then put the waypoints in a dict and find the nearest one with the same function.
Challenge
…nested ifs into one condition joined with and, keeping the output exactly the same, then rewrite it as a flat if/elif chain that reports the first check that failed.
Challenge
Unpack an (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
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.