Skip to content
Back to Python

Python

Function arguments and scope

Design flexible calls and trace how functions resolve names.

With Zoonk, your plan starts at this chapter and fits your schedule.

Build my plan

Start free, no account needed.

Where this chapter sits in the course

Lessons

Chapter 14 of 22 · 6 short lessons · 24 min
  1. 1Positional and keyword arguments3 min
  2. 2Default arguments4 min
  3. 3Variable-length arguments4 min
  4. 4Local and enclosing scopes4 min
  5. 5Nested functions and nonlocal3 min
  6. 6Challenge: Function arguments and scope6 min

What you'll learn

  • Design function parameters and call functions flexibly
  • Trace names across local and enclosing scopes

Your plan from this chapter

It follows the course from here, at your pace, with reviews before you forget.

Build my plan

Start free, no account needed.