Results for “and”

Showing 221–230 of 233

  1. Challenge

    Logging instead of print

    …for every tank. The bug is fixed, but the prints stayed, and the pre-burn check now buries its one important line, an empty tank, under lines nobody needs. Switch to the logging module, where every…

    Fix the code Medium 2 stages logging debug info warning
  2. Challenge

    Unreachable branch

    …critical limit of 50. The monitoring code reported WARN, and nobody shut the engine down. Predict what the check prints, find out why the CRITICAL branch never runs, fix it, then write a chain with…

    Fix the code Easy 3 stages if elif order of conditions debugging
  3. Challenge

    Wrong average

    …sensors measure the temperature of Python One 's hull, and the thermal control system watches their average. Today the average says 47 °C, while every single sensor reads around 21 °C. Predict what…

    Fix the code Easy 3 stages order of operations brackets average debugging
  4. Challenge

    Progress on one line

    …to Python One , the console first shows what it's doing and then, once it's finished, how it went. Command-line tools do this all the time: you see Uploading flight plan... while you wait, and done…

    Write the code Easy 3 stages print end progress console
  5. Challenge

    Mission Control online

    …launch, the ground software at Mission Control starts up and reports its status. A monitoring program on another computer reads those lines and decides whether everything is fine or someone needs to…

    Write the code Easy 2 stages print output strings beginner
  6. Article Python Fundamentals

    Online Python Editor

    …wrestling with all morning. But your laptop is at home, and mobile code editors are... well, terrible. We've all been there. That moment when inspiration strikes at the worst possible time - during…

  7. Challenge

    Guard clauses

    …has grown one condition at a time, each inside the last, and the reason for a refusal now sits four levels deep, at the far end of an else whose if is off the top of the screen. Flatten the function…

    Fix the code Medium 2 stages functions return guard clauses refactoring
  8. Challenge

    Log formatter function

    …has been copied into every program that writes to the log, and each copy has drifted a little. Put the format in one function that returns the line, then see what happens when the format has to…

    Fix the code Easy 2 stages functions def return refactoring