Challenge
Mission Control online
…character by character. A first Python challenge on exact output with print(), right in your browser.
Showing 1–10 of 32
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…
Example
The print() function is the basic tool for displaying data in Python console.
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.
Article Python Fundamentals
…with mobile-friendly interface, CLI arguments & terminal output. No sign-up required.
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.