Results for “function”

Showing 1–10 of 86

  1. Challenge

    Log formatter function

    …mission log's f-string into format_log(t, level, msg), a function that returns the line instead of printing it, then fix the alignment of every log line with one change inside the function.

    Fix the code Easy 2 stages functions def return refactoring
  2. Challenge

    Parser function

    …in one place and not the other. Turn the parsing into a function that any program can call, then let it decide on its own which lines are worth a record. parse_line() Move the parsing of one line into…

    Fix the code Medium 2 stages functions return dictionaries None
  3. Challenge

    Summary function

    …the ones where the sensor sent nothing. Write one function that returns the whole summary, then make it safe for an empty pass. Four numbers in one dict Write summarise(readings) , which returns a…

    Write the code Medium 2 stages functions return dictionaries min