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
/
Scope and namespaces
In a Python 3.14 function, what happens after locals()["count"] = 3?
from Scope and namespaces
Python 3.14
advanced
1 min
In a Python 3.14 function, what happens after locals()["count"] = 3?
A local variable named count is created.
Only the returned snapshot changes; no local binding is created.
A module-global count is created.
Check
Ask AI about this kata
Report an error
previous kata
Which construct binds a name in the current code block?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload