Challenge
Aligned status board
…the other kind of quotes inside, so they don't end the f-string. Readings on the right The board gets a third column: each system's temperature in °C. Numbers read best aligned to the right, so their…
Showing 21–30 of 72
Challenge
…the other kind of quotes inside, so they don't end the f-string. Readings on the right The board gets a third column: each system's temperature in °C. Numbers read best aligned to the right, so their…
Challenge
…log line like [T+00:12:05] INFO Engines nominal with an f-string, then build the timestamp from numbers with zero padding.
Challenge
…of an access code with * using len(), slicing and string repetition, then find a code inside a log line and mask it there before the line is saved.
Challenge
Check whether a mission log line contains ERROR with in, find where it starts with find(), including the -1 it gives when there is nothing to find, then slice out the error message.
Challenge
…place, then draw the crew display's ten-segment gauge with string repetition and int().
Challenge
…a fuel fraction as a percentage, using format specs in f-strings.
Challenge
…2026-03-14T09:30:10Z,CABIN,ERR,kPa (could not convert string to float: 'ERR') 09:30:10 ENG-2: 415.0 C Skipped: 2026-03-14T09:30:15Z,ENG-2,4l7.9,C (could not convert string to float: '4l7.9') 09:30:15…
Challenge
…Move the skipping into the function as well. parse_line() strips the line, so spaces around a good line don't end up in its fields, and returns None for a blank line, a comment, or a line that doesn't…
Article Mini projects
…= event.copy() stored_hmac = event_copy.pop('hmac') event_string = json.dumps(event_copy, sort_keys=True) expected_hmac = self._compute_hmac(event_string) if expected_hmac != stored_hmac: raise…
Challenge
…counts how many times the text appears. A multi-line string has a new line character, "\n" , between its lines, so there is one line more than there are new lines. Don't be fooled A new entry has come…