Results for “python errors”

Showing 41–50 of 55

  1. Challenge

    Missing field

    …Instead of a board with one blank, the operators got an error and no board at all. Predict what happens, find out what the dict really holds, fix it, then build a board that copes with any missing…

    Fix the code Easy 3 stages dictionaries KeyError get default values
  2. Challenge

    Missing index

    …crashes can't be checked. After you run it and see the error, put a # in front of the print line, then check: you'll see your prediction next to what the original line did. Investigate and modify…

    Fix the code Easy 3 stages lists indexing IndexError len
  3. Challenge

    Log line format

    …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 time since launch in square…

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

    Count warnings

    …line with one line per level: Entries: 7 INFO: 4 WARN: 3 ERROR: 0 Use the same pattern for each: "] INFO" , "] WARN" and "] ERROR" . A level that never appears counts as 0.

    Write the code Medium 3 stages strings count multi-line strings logs
  5. Challenge

    Telemetry pipeline

    …together: the CSV reader from "Telemetry from CSV", the error handling from "Survive bad lines", the limits from the alert checks and the JSON from "JSON out". The ground station's export arrives…

    Write the code Hard 3 stages project csv json files
  6. Example

    Creating Sets

    Sets store only unique elements without a specific order.

    Audio lesson set unique