unnested
Explore
Pro
Sign in
Learn Python
Functions & Scope
15 questions
Output
Easy
Reading from enclosing scope
Multiple choice
Easy
Default argument evaluation
Output
Easy
Implicit None return
Vocabulary
Easy
What *args does
Vocabulary
Easy
What **kwargs does
Sign in
to save your progress.
Output
Medium
Closure variable capture
Output
Medium
*args and **kwargs types
Output
Medium
Mutable default argument bug
Output
Medium
Assignment without global
Vocabulary
Medium
What a closure is
Vocabulary
Medium
What nonlocal does
Vocabulary
Medium
What LEGB means
Output
Hard
nonlocal counter
Output
Hard
Closure late binding
Output
Hard
Unpacking into function call