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…
Showing 41–50 of 75
Challenge
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…
Challenge
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…
Challenge
…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…
Challenge
…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() .
Challenge
…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.
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…[-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.