Results for “records”

Showing 11–20 of 22

  1. Challenge

    Undo and history

    Extend the working cargo console: record every change to the hold in a history list and show it with a history command, then add undo, which takes the last change off the history and reverses it.

    Write the code Hard 2 stages project lists stack append
  2. Challenge

    Mass by category

    …67.0 kg crew: 3.4 kg Start with totals = {} . For each record, totals.get(category, 0) gives the total so far, or 0 for a category not seen yet; add the record's mass and store it back under the…

    Write the code Medium 2 stages dictionaries grouping get sorted
  3. Article Mini projects

    Medical dispenser - Don’t trust the user

    …dose in {wait_seconds // 3600:.1f} hours" # Dispense and record self.dose_times.append(current_monotonic) return "DISPENSED: Medication delivered safely" # Grace tries his trick: dispenser =…

  4. Challenge

    Manifest line

    …each value, in order. A new field The manifest now also records the module each item is stowed in. The starter code stops with ValueError: too many values to unpack , because the tuple has four values…

    Write the code Easy 2 stages tuples unpacking ValueError formatting
  5. Challenge

    Search the log

    The mission log records thousands of lines a day, and the flight director only wants to see the errors. Before the log viewer can highlight them, it has to know whether a line contains ERROR , and…

    Write the code Medium 2 stages strings in find slicing