Results for “lists”

Showing 51–60 of 92

  1. 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
  2. Challenge

    Summary function

    …which returns the count, min, max and mean of a list of readings as one dict, then make it handle a pass with no data and round the mean, so any program can use the summary.

    Write the code Medium 2 stages functions return dictionaries min
  3. Challenge

    Countdown with holds

    …with range(10, -1, -1), adding a hold line at every second listed in holds, then scrub the launch at a given second with break, or print Liftoff! at the end.

    Write the code Easy 2 stages for loop range negative step in
  4. Article Mini projects

    Python Random Module

    …# Choose a random planet destination = random.choice(list(planets.keys())) # Get planet details planet_info = planets[destination] return destination, planet_info # Let's try our space lottery!…

  5. Challenge

    Mass by category

    …totals[category] = totals.get(category, 0) + mass, then list the categories from heaviest to lightest with their share of the load.

    Write the code Medium 2 stages dictionaries grouping get sorted
  6. Challenge

    API response

    …launch from a dict shaped like a launch-API response, then list every field the response has with items(), the way you'd inspect an API you haven't used before.

    Write the code Easy 2 stages dictionaries keys items JSON
  7. Challenge

    Debris grid

    Scan a radar grid stored as a list of strings with a loop inside a loop, print the row and column of every # with enumerate(), then turn the loops around to find the columns that are clear all the way…

    Write the code Medium 2 stages nested loops enumerate range strings