Results for “with”

Showing 1–10 of 210

  1. Challenge

    Names with values

    Print each sensor name with its reading by looping over two lists together with zip(), then add a third list of units and warn when the lists don't have the same length, since zip() quietly stops at…

    Write the code Easy 2 stages for loop zip lists unpacking
  2. Challenge

    Settings with defaults

    …by copying the defaults and laying their own values on top with update(), so any setting they haven't changed falls back, then warn about unknown keys instead of saving them.

    Write the code Medium 2 stages dictionaries copy update defaults
  3. Article Python Fundamentals

    A Practical Guide to Getting Started with Programming

    …simplified explanation, but I'm sure you get what I mean). With Python, you write these instructions using English words and some symbols that are later interpreted so your PC can understand them…

  4. Challenge

    Countdown with holds

    Print a launch countdown from T-10 to T-0 with range(10, -1, -1), adding a hold line at every second listed in holds, then scrub the launch at a given second with break, or print Liftoff! at the end.

    Write the code Easy 2 stages for loop range negative step in
  5. Challenge

    Log to a file

    Write 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…

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

    Telemetry pipeline

    …data pipeline: read the telemetry CSV, reject rows with unknown sensors or broken values and say why, flag readings outside each sensor's limits, and save a JSON summary for the dashboard.

    Write the code Hard 3 stages project csv json files