Challenge
Date and time from a timestamp
Slice the date and the time of day out of an ISO timestamp like 2026-03-14T09:30:05Z, then rebuild it in the day.month.year format used in Poland and much of Europe.
Showing 1–10 of 18
Challenge
Slice the date and the time of day out of an ISO timestamp like 2026-03-14T09:30:05Z, then rebuild it in the day.month.year format used in Poland and much of Europe.
Challenge
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…
Article Mini projects
…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…
Article Python Fundamentals
…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…
Challenge
…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…
Challenge
…'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…
Challenge
…INFO Engines nominal with an f-string, then build the timestamp from numbers with zero padding.
Challenge
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…
Challenge
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…
Challenge
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…