Results for “output”

Showing 1–10 of 32

  1. Challenge

    Legacy script

    …it into parse_feed() and summary_line() with the output unchanged to the character, then add assert tests that would catch either function breaking.

    Fix the code Hard 2 stages project refactoring functions testing
  2. Challenge

    Copy-pasted blocks

    …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.

    Fix the code Medium 2 stages refactoring for loop tuples lists
  3. Article Python Fundamentals

    Online Python Editor

    …with mobile-friendly interface, CLI arguments & terminal output. No sign-up required.

  4. Challenge

    Extract a function

    …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.

    Fix the code Easy 2 stages functions refactoring return tuples
  5. Challenge

    Flatten nested ifs

    …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.

    Fix the code Medium 2 stages if elif and nested conditions