Challenge
Telemetry report
Extend the parser from "Parse a telemetry line" to read three readings from a multi-line feed, print each as one row, then turn them into a report with a header and aligned columns.
Showing 11–17 of 17
Challenge
Extend the parser from "Parse a telemetry line" to read three readings from a multi-line feed, print each as one row, then turn them into a report with a header and aligned columns.
Challenge
…4, skipped: 3 Use except ValueError as error: ; inside an f-string, {error} shows the message.
Challenge
…its key in square brackets: launch["name"] . Inside an f-string, use single quotes for the key: {launch['name']} . Everything in the response Before relying on an API, developers look at a whole…
Challenge
…record["sensor"] , record["time"] and so on. Inside an f-string, use the other kind of quotes: {record['time']} .
Challenge
…then put them back together in a new order with an f-string.
Challenge
…two digits, so 3725 seconds would show as 01:02:05 . In an f-string, {minutes:02d} pads a whole number with zeros to two digits. Days too Long missions count days as well. Mission control displays…
Quiz
…has 20 short questions for beginners, from print() and f-strings to lists, dictionaries, loops and functions. Most of them show a few lines of code and ask what it does, the way you will read code…