Results for “and”

Showing 141–150 of 150

  1. Challenge

    Mass by category

    …much each kind of cargo weighs, because food, life support and spares go into different racks with different mass limits. Total the manifest by category, then rank the categories by mass. A total per…

    Write the code Medium 2 stages dictionaries grouping get sorted
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  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
  9. Challenge

    Go launches only

    …Tern-5 (ISRO) Aurora Relay 2 (JAXA) Loop over the launches and compare launch["status"] with "Go" . And the rest Collect the launches that aren't Go, each with its status, and print them on one line…

    Write the code Easy 2 stages dictionaries lists of dicts filtering if
  10. Challenge

    Log line format

    …Engineers search those logs, tools filter them by level, and alarms go off when an ERROR line appears. That only works if every line has exactly the same shape: [T+00:12:05] INFO Engines nominal The…

    Write the code Easy 2 stages f-strings print logs formatting