Results for “functions”

Showing 1–10 of 86

  1. Article Python Fundamentals

    Python Functions for Beginners

    Learn to write your own Python functions, from your first def to return values, default parameters and scope, with runnable examples, common mistakes and six practice projects.

  2. 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
  3. 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