Results for “end”

Showing 41–50 of 75

  1. Challenge

    CSV row

    The engine sensors on Python One send readings that end up in a CSV file: one reading per line, with commas between the values. Spreadsheets, databases and data tools all read CSV, which is why it's…

    Write the code Easy 3 stages print sep csv telemetry
  2. Challenge

    Daily mission report

    At the end of every day, the outgoing shift leaves a report for the incoming one: each subsystem, its status, its alerts and how much of the day it was up. People read it on a screen in a fixed-width…

    Write the code Medium 2 stages project formatting f-strings alignment
  3. Challenge

    Flight software review

    …the error, fix it, and run again, until it runs to the end. Four bugs stop it: a syntax error, a type error, a missing key and an index out of range. Fix each one where the error points, without…

    Fix the code Hard 2 stages project debugging SyntaxError TypeError
  4. Challenge

    Test the pipeline

    …allowed and must give None . Keep the passed line at the end. The hidden tests now plant all three bugs, the third being >= instead of > in check_limits() .

    Write the code Hard 2 stages project testing assert try
  5. Challenge

    Test the error

    …and that 40 s needs 500.0 kg. Keep the passed line at the end. The hidden tests now also try a version that refuses 0, one with a vague message, and one that refuses every length.

    Write the code Medium 2 stages testing assert try except
  6. Challenge

    Catch what you expect

    …Three of the four readings look like numbers. How many end up in good ? Investigate and modify Investigate. Change except: to except Exception as error: and print type(error).__name__ in it, to see…

    Fix the code Medium 3 stages errors try except ValueError
  7. Challenge

    Read the traceback

    …Fill in error_type , crash_function and crash_line at the end of the program, then fix the bug on that line so the program prints: Average: 695.0 K Fix the function, not the data: the readings come…

    Fix the code Easy 2 stages errors traceback KeyError TypeError
  8. Challenge

    Survive bad lines

    …new counter, skipped , and go on to the next line. At the end, report all three numbers: 09:30:05 ENG-2: 412.5 C 09:30:05 TANK-1: 78.3 % Damaged line: 2026-03-14T09:30:10Z,TANK-1 09:30:10 ENG-2: 415.0…

    Write the code Medium 2 stages errors try except ValueError
  9. Challenge

    Prove the fix

    …very list that was passed in. Keep the passed line at the end. The hidden tests now also try two "fixes" that break this: one that ignores the log it is given, and one that returns a copy instead of…

    Write the code Medium 2 stages testing assert regression tests default values
  10. Challenge

    Edge cases

    …[-2, 2] , whose mean is 0. Keep the passed line at the end. The hidden tests break the empty-list check and the handling of negative numbers.

    Write the code Medium 2 stages testing assert edge cases None