Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
A function appends to a default parameter items=[]. What happens across calls that omit i…
from Python
beginner
1 min
A function appends to a default parameter items=[]. What happens across calls that omit items?
The calls reuse one list created when the def statement ran
Each call receives a newly created empty list
Python copies the list after each return
Check
Ask AI about this kata
Report an error
next kata
Which keyword lets an inner function rebind a name in its nearest enclosing function scop…
Fill in
A new version is available
Reload