Challenge
Seeded simulation
…run and a test can check it exactly, then pick a kind for each glitch with random.choice().
Showing 41–50 of 136
Challenge
…run and a test can check it exactly, then pick a kind for each glitch with random.choice().
Challenge
…the output exactly the same, then loop over the dict for a weight table.
Challenge
A vibration check reports WARN for a reading of 63 because its elif conditions are in the wrong order, so CRITICAL can never run. Predict it, find the dead branch, fix the order, then write a…
Challenge
…read it with csv.DictReader, using the header row for the field names, then find the hottest temperature reading, comparing the values as numbers.
Challenge
fuel_needed() quietly returns negative fuel for a negative burn length. Make it raise ValueError with a message that shows the bad value, then raise TypeError, checked first, when the length isn't a…
Challenge
…and a default, then print a list of launches with defaults for any missing field.
Challenge
…when the battery is under 20% or contact has been lost for over 10 minutes, using or, then name the rule that fired with boolean variables and an if/elif chain.
Challenge
…how print() ends. A Python challenge on print(end=...) for progress messages.
Challenge
…it returns and what the reserve means, then add type hints for its parameters and return value; the tests read both from the function itself.
Challenge
…in Mbit/s with input(), work out the transfer time without forgetting the 8 bits in a byte, show it in minutes and seconds, then count the ground station passes.