Challenge
Duplicate events
The radio link from the capsule plays it safe: when it isn't sure an event arrived, it sends it again. Mission Control would rather get an event twice than not at all, but the event board must show…
Showing 31–39 of 39
Challenge
The radio link from the capsule plays it safe: when it isn't sure an event arrived, it sends it again. Mission Control would rather get an event twice than not at all, but the event board must show…
Challenge
…418.8 C Median: 413.8 C The output doesn't change: that is the point of a refactor. The check looks for the module and makes sure your own functions are gone. Spread, and too little data Now there are…
Example
Methods sort() and reverse() for ordering list elements.
Example
Adding and removing elements from list. Methods append, insert, pop and remove.
Article Python Fundamentals
…lines of Python, you've already used functions. print() is one. So are len() , input() and int() . Somebody wrote them, gave each one a name, and now you can use them without ever looking at the code…
Challenge
…to the list. Then, after the loop, list the low tanks, or none when there aren't any: Tank A: 78.3% Tank B: 12.5% LOW Tank C: 46.0% Tank D: 9.8% LOW Low tanks: B, D Collect the names of low tanks in a…
Article Python Fundamentals
Imagine your code is a spacecraft. At every fork in the mission plan your program must decide: burn engines, hold orbit, or abort. In Python those steering decisions are made with if , elif , and else…
Challenge
…API doesn't keep everything at the top level: the rocket is a dict of its own, and the mission holds a list of patch images. The public launch page shows the rocket and the mission patch. Dig the two…
Challenge
…float(value), "unit": unit} and append it. The value is a number in the record, so it prints without quotes. Ask by sensor An engineer wants the ENG-2 readings. Add wanted = "ENG-2" under the feed…