Results for “sep”

Showing 1–10 of 13

  1. Challenge

    CSV row

    Write a telemetry reading as a CSV row with print() and sep, add a header row, then switch to tabs for pasting into a spreadsheet. Real data formats from print().

    Write the code Easy 3 stages print sep csv telemetry
  2. Challenge

    Units and separators

    …for people: a sensible number of decimal places, thousands separators and the right units. The stored values stay exact; only the way they're printed changes. Speed Print the speed rounded to two…

    Write the code Easy 3 stages f-strings number formatting rounding telemetry
  3. Challenge

    Parse a telemetry line

    In "CSV row" you printed a reading as comma-separated values. Now Python One 's ground software receives those lines and has to take them apart again: which part is the time, which the sensor, which…

    Write the code Easy 2 stages strings split parsing csv
  4. Challenge

    Backup that isn't

    …swaps Tanaka for Moreau. Build the planned roster as a separate list: copy crew , remove Tanaka from the copy and add Moreau at the end. Then print both: Current: Okafor, Lindqvist, Tanaka, Kowalska…

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

    Prove the fix

    Write assert checks for the fixed add_sample() that would have caught the shared default list, then add checks that a log passed in is still the one that gets the sample, so a "fix" that breaks that…

    Write the code Medium 2 stages testing assert regression tests default values
  6. Challenge

    Any number of values

    …call, average(*readings) passes the five readings as five separate arguments. An option after the values Add a rounding option, decimals=1 , after *values , and return None when there are no values at…

    Write the code Easy 2 stages functions *args unpacking keyword-only arguments
  7. Challenge

    Settings with defaults

    …10 dark_mode: True alerts: all DEFAULTS.copy() makes a separate dict, and settings.update(user_settings) overwrites the keys the user set. Unknown settings A user's profile has a typo: "dark_mod"…

    Write the code Medium 2 stages dictionaries copy update defaults
  8. Challenge

    Names with values

    The telemetry decoder hands over each frame as separate lists: the sensor names in one, the readings in another, in matching order. The display needs them back together: each name next to its value…

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

    Telemetry report

    …as a report they can scan at a glance, not as raw comma-separated text. Extend your parser from "Parse a telemetry line" to read the whole block, then lay it out as a table with aligned columns. One…

    Write the code Medium 2 stages strings split slicing f-strings