Results for “open”

Showing 1–10 of 14

  1. Challenge

    Log to a file

    …the day's mission log entries to mission.log with with open(), one per line, read the file back and print it, then add an append_entry() function that adds lines at the end without wiping what is…

    Write the code Easy 2 stages files open with write
  2. Challenge

    Telemetry from CSV

    …csv.DictReader Replace the old parser and its feed string: open telemetry.csv with newline="" , loop over csv.DictReader(csv_file) , and print each row in the same format as before: 09:30:05 ENG-2…

    Write the code Medium 2 stages csv csv.DictReader files open
  3. Challenge

    Telemetry pipeline

    …print one last line: Saved summary.json The hidden tests open summary.json and compare it with what they expect.

    Write the code Hard 3 stages project csv json files
  4. Challenge

    What arrived?

    …store it in converted_type . Then find out what bool(valve_open) gives, True or False , and store it in bool_of_valve . Run them to check, then remove any lines you added before you check. Modify…

    Write the code Easy 3 stages type() data types type conversion sensor data
  5. Challenge

    Airlock permissions

    …basic operator training to the commander's approval for opening the outer hatch, and the airlock's control panel checks them before it does anything. Check one action for one crew member, then the…

    Write the code Medium 2 stages sets subset difference permissions
  6. Challenge

    Alert deduplicator

    The monitoring system raises the same alert over and over. Group repeats of an alert that come within 60 seconds of the first into one line with a count, in the order they first appeared, then add the…

    Write the code Hard 2 stages project dictionaries tuples as keys grouping
  7. Challenge

    Daily mission report

    …PROP,OK,0,100.0 COMMS,DEGRADED,2,94.6 THERM,OK,0,99.95 Open the file with newline="" ; writeheader() writes the keys and writerows(rows) all the rows. The hidden tests delete the file, run your…

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

    JSON-looking payload

    …every { starts a placeholder, including the one meant to open the message. Fix the line so it prints the same message: {"status": "GO", "note": "Don't skip pre-check"} Write each curly brace you want…

    Fix the code Medium 2 stages quotes escape sequences f-strings json
  9. Challenge

    Flight software review

    …in a hurry, and now it doesn't even start. The burn window opens in an hour, and you are the reviewer. There are five bugs. Four of them stop the program, each with an error that tells you where to…

    Fix the code Hard 2 stages project debugging SyntaxError TypeError