Results for “timestamp”

Showing 1–10 of 18

  1. Challenge

    Mission elapsed time

    Parse the launch and the latest telemetry timestamp with datetime.fromisoformat(), subtract them to get the mission elapsed time, then time events reported by ground stations in three different time…

    Write the code Medium 2 stages datetime timedelta ISO 8601 time zones
  2. Article Mini projects

    Medical dispenser - Don’t trust the user

    …This version uses proper HMAC authentication, stores real timestamps, and maintains an append-only audit trail. import hmac import hashlib import json import time import os from datetime import…

  3. Article Python Fundamentals

    Python print() Function

    …values display in formatted way Some systems provide timestamps with measured data. It's helpful to see the temperature value with the last measured date and time. This ensures the measurement is up…

  4. Challenge

    File name from data

    …Star Tracker A , and the time of the first reading as a timestamp. Build the same kind of file name from those: File: star-tracker-a_2026-03-14.csv Make the name lower case, with dashes instead of…

    Write the code Easy 3 stages strings f-strings lower replace
  5. Challenge

    Line to record

    …'C'} Start with records = [] . In the loop, build {"time": timestamp[11:19], "sensor": sensor, "value": float(value), "unit": unit} and append it. The value is a number in the record, so it prints…

    Write the code Easy 2 stages dictionaries lists parsing records
  6. Challenge

    Telemetry pipeline

    A small but complete 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…

    Write the code Hard 3 stages project csv json files
  7. Challenge

    Telemetry from CSV

    Point the feed parser from "Parse the whole feed" at telemetry.csv: read it with csv.DictReader, using the header row for the field names, then find the hottest temperature reading, comparing the…

    Write the code Medium 2 stages csv csv.DictReader files open
  8. Challenge

    Test the pipeline

    The telemetry pipeline is now split into parse_row() and check_limits(). Write assert tests for both, good rows, rejected rows and readings right at a limit, so that each of three planted bugs makes…

    Write the code Hard 2 stages project testing assert try