Results for “sensor data”

Showing 11–17 of 17

  1. Challenge

    Parse a telemetry line

    …take them apart again: which part is the time, which the sensor, which the value. 2026-03-14T09:30:05Z,ENG-2,412.5,C Split the line into its fields, then turn the value into a number you can calculate…

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

    Readings that won't add

    Two sensor readings add up to 12080 instead of 200 because they arrived as text. Predict it, find out why and fix it with int(), then add decimal readings with float().

    Fix the code Easy 3 stages type conversion int float str
  3. Challenge

    Broken boot script

    …prints: Booting flight computer... Loading navigation data... Boot complete Missing bracket The next part of the boot script checks the sensors, and it was edited in the same hurry: a closing bracket…

    Fix the code Easy 3 stages SyntaxError debugging print quotes
  4. Challenge

    Read the traceback

    …program prints: Average: 695.0 K Fix the function, not the data: the readings come from the sensors as they are. A longer traceback The report now covers each pass, and the newest export sends one…

    Fix the code Easy 2 stages errors traceback KeyError TypeError
  5. Challenge

    Seeded simulation

    Simulate 100 sensor readings, each with a 5% chance of a glitch, and seed random with 42 so the count is the same on every run and a test can check it exactly, then pick a kind for each glitch with…

    Write the code Easy 2 stages random random.seed random.choice simulation
  6. Challenge

    Skip blanks and comments

    The parser from "Parse the whole feed" works on clean data. The ground station's real export isn't clean: it has a comment at the top, blank lines between blocks, notes from the operators, and now and…

    Write the code Medium 2 stages for loop continue strip startswith
  7. Article Python Fundamentals

    Numbers and Basic Math Operations in Python

    When planning space missions or analyzing astronomical data, mathematics is our most reliable tool. Python, with its intuitive syntax and powerful numerical capabilities, has become the preferred…