Results for “and”

Showing 131–140 of 150

  1. Challenge

    Extra log fields

    …orbit? Every subsystem wants to attach different details, and nobody wants a format_log() with fifty optional parameters. Let the function take whatever fields the caller has, then feed it fields from…

    Write the code Medium 2 stages functions **kwargs keyword arguments dictionaries
  2. Challenge

    Changed the caller's list

    …stored readings for the day have one more value in them, and the daily report counts readings that were never really taken. Predict what the program prints, find out how the preview reached the stored…

    Fix the code Medium 3 stages functions lists mutation return
  3. Challenge

    Index by ID

    …crew ask for cargo by ID all day long: "where is CG-0045, and how heavy is it?". Searching the whole manifest list for every question works for six items, but the real manifest has thousands. Build an…

    Write the code Medium 2 stages dictionaries indexing lookup in
  4. Challenge

    One orbit short

    The test flight is ten orbits long, and the flight log should have a line for each one. The log always ends one orbit early, and the last orbit, the one that matters for the landing, is never in it…

    Fix the code Easy 3 stages for loop range off-by-one step
  5. Challenge

    Backup that isn't

    …to the crew, the planner made a backup of the roster and experimented on the backup. When the experiment was over, the live roster had changed as well, and Tanaka had quietly disappeared from it…

    Fix the code Medium 3 stages lists copy references is
  6. Challenge

    Unit mix-up

    …the Moon. One leg comes from a contractor's planning tool, and the total doesn't look right. Predict what the code prints, find the leg that doesn't fit, fix the sum, then convert a lander's sensor…

    Fix the code Easy 3 stages units conversion constants debugging
  7. Challenge

    Ground pass planner

    …passes are long enough for a full data dump, in order, and where the silent stretches are. Build the planner. One timeline Collect every pass longer than MIN_MINUTES , from every station, into windows…

    Write the code Medium 2 stages project datetime timedelta sorting
  8. Challenge

    Silent branch

    …status: green for Go, amber for Hold, red for Scrub. Go and Hold look right. Scrubbed launches show no colour at all, and nobody noticed until a launch was scrubbed on live television. Predict what…

    Fix the code Easy 3 stages functions return None branches
  9. Challenge

    input() returns text

    …station's logistics tool asks how many people are on board and works out the crew after the next docking. Whatever number you type, it crashes. Predict what happens, find out why input() is behind it…

    Fix the code Easy 3 stages input int TypeError type conversion
  10. Challenge

    Duplicate events

    …event once Print each event once, keeping the first copy, and count the copies you dropped: EV-1001 Hatch closed EV-1002 Cabin pressure nominal EV-1003 Abort system armed EV-1004 Switched to internal…

    Write the code Medium 2 stages sets add in deduplication