Results for “if”

Showing 61–63 of 63

  1. Challenge

    Search the log

    …gives the index of the first character of the match, or -1 if there's no match at all. The message The flight director wants just the message that comes after ERROR and the space after it. Add a line…

    Write the code Medium 2 stages strings in find slicing
  2. Challenge

    Magic numbers

    …. Every copy is a place someone would have to change if the report were rerun for the Moon. Modify. Add two constants above the prints, written in capitals so everyone knows they don't change, for…

    Fix the code Easy 3 stages constants refactoring variables clean code
  3. Challenge

    Log line format

    …alarms go off when an ERROR line appears. That only works if every line has exactly the same shape: [T+00:12:05] INFO Engines nominal The time since launch in square brackets, the level, two spaces…

    Write the code Easy 2 stages f-strings print logs formatting