Skip to content
Skip to page content
soylai.com

Functions — Part 2: Arguments, Return Values, Flow of Execution and Scope

Beta
Lesson

Arguments, scope and flow

Part 2 — how values go into a function, how several values come out, and which names a function can see.

In this lesson you will

  • Use positional, default and keyword arguments correctly
  • Return several values from a function and unpack them
  • Trace the flow of execution and tell local from global variables
  • Predict how mutable and immutable arguments behave inside a function
Part 2 at a glance