Results for “open”

Showing 1–10 of 20

  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. Article Mini projects

    Medical dispenser - Don’t trust the user

    …log""" if not self.log_file.exists(): return [] try: with open(self.log_file, 'r') as f: events = json.load(f) # Verify chain integrity for i, event in enumerate(events): # Reconstruct the message…

  7. 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