Challenge
Tank level
Turn a tank's capacity and contents into a fill percentage with one decimal place, then draw the crew display's ten-segment gauge with string repetition and int().
Showing 121–130 of 150
Challenge
Turn a tank's capacity and contents into a fill percentage with one decimal place, then draw the crew display's ten-segment gauge with string repetition and int().
Challenge
…the Python version. Ask Python for it with the platform and sys modules and print it the way python --version does.
Challenge
…a good line first, then None for a blank line, a comment and a line with a missing field, so a broken parser can't pass.
Challenge
…than parts of text, then normalise IDs typed by hand and print a clear cleared or not-cleared message.
Challenge
…1, remove() someone who left, then pop() the newest member and print who was reassigned.
Challenge
…engine temperature into OK, WARN or CRITICAL with if, elif and else and two thresholds, check the exact boundaries, then store the level in a variable for a status line.
Challenge
…level counter from "Entries per level": replace the dict and counts.get() with collections.Counter, which starts every key at 0, then list the levels from most to least common with most_common().
Challenge
Replace a nine-branch elif that maps planets and the Moon to surface gravity with a dict and one get() lookup, keeping the output exactly the same, then loop over the dict for a weight table.
Challenge
Print a JSON-style status message full of double quotes and an apostrophe exactly, then build it with an f-string that needs literal curly braces.
Challenge
The station runs around the clock: a morning, an afternoon and a night shift, every day of the week. Making the rota by hand takes the commander an hour every Sunday, and twice this month somebody…