Results for “loop”

Showing 1–10 of 57

  1. Article Python Fundamentals

    Nested Loops in Python

    Nested loops let you work with 2D data like grids, tables, and images. Learn how they work, avoid common pitfalls, and write cleaner Python code with real examples.

  2. Challenge

    Never-ending wait

    A while loop waits for the antenna signal but never moves on to the next reading, so it never ends. Predict it, find the stuck counter, fix it, then write a wait that gives up when the readings run…

    Fix the code Easy 3 stages while loop infinite loop counter and
  3. Challenge

    Copy-pasted blocks

    …blocks with 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
  4. Challenge

    First error

    …on line 4: [T+00:14:47] ERROR Fuel valve 2 not responding Loop with enumerate(log, start=1) . Look for "] ERROR" , as in "Count warnings", so a message that only mentions the word doesn't count. break…

    Write the code Easy 2 stages for loop break enumerate flags