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.
Showing 51–60 of 92
Challenge
…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.
Challenge
…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.
Challenge
…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.
Quiz
…of the earlier quizzes, from variables and strings to lists, dictionaries and functions. For each piece of code you decide which error it raises, read the message, or choose the fix. What the quiz…
Article Mini projects
…# 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!…
Challenge
…totals[category] = totals.get(category, 0) + mass, then list the categories from heaviest to lightest with their share of the load.
Challenge
…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.
Challenge
…with in, fix it with get() and a default, then print a list of launches with defaults for any missing field.
Challenge
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…
Quiz
…The comma that makes a tuple, and how tuples compare with lists Unpacking, with * and in for loops Why tuples cannot change, and how to build a new one instead count() , index() , sorting, nested…