Results for “lists of dicts”

Showing 21–30 of 35

  1. Challenge

    Telemetry pipeline

    …flag, save. Validate the rows Read telemetry.csv with csv.DictReader . Reject a row whose sensor is not in LIMITS , or whose value is not a number, with its line number in the file: the header is line…

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

    Counter

    …the level counter from "Entries per level": replace the dict and counts.get() with collections.Counter, which starts every key at 0, then list the levels from most to least common with most_common().

    Fix the code Easy 2 stages collections Counter most_common dictionaries
  3. Challenge

    Alert deduplicator

    …09:33:05 COMMS Signal weak (x2) Keep the groups as dicts in a list, groups , with first , last , source , message and count , and a dict from (source, message) to the newest group for that alert…

    Write the code Hard 2 stages project dictionaries tuples as keys grouping
  4. Challenge

    Ground pass planner

    …every contact window longer than 8 minutes into one list, sorted by time, then find the longest stretch with no station in contact, counting overlapping passes only once.

    Write the code Medium 2 stages project datetime timedelta sorting
  5. Article Python Fundamentals

    Variables and data types in Python

    …= True engines_active = False Complex Data Types Lists Ordered collections of items, great for storing sequences of data: planet_names = ["Mercury", "Venus", "Earth", "Mars"] temperatures = [167, 464…

  6. Challenge

    Sign-up cleanup

    …two weeks in a sealed habitat, has closed, and the list is a mess: names in capitals or with double spaces, emails with stray spaces, people who signed up twice, an entry with no name at all. Clean it…

    Write the code Medium 2 stages project strings strip split
  7. Challenge

    Legacy script

    …output exactly as it is now: parse_feed(feed) returns a dict from each sensor to its list of values, as floats, in order; summary_line(sensor, values) returns one report line: the average rounded to…

    Fix the code Hard 2 stages project refactoring functions testing