Python Semantics 0/125

Submodule 7 of 15

Closures & Late Binding

What a function remembers.

0/8 solved
Question Tags Difficulty Success
1. Closures Keep Their Enclosing Variables
closuresfree-variables
Medium 100%
2. Read Time, Not Definition Time
closureslate-binding +1
Medium 54%
3. The Loop Variable Cell
closureslate-binding +1
Medium 35%
4. Mutating an Outer Local Needs nonlocal
nonlocalclosures +1
Medium 100%
5. Fixing Late Binding With a Default Argument
closureslate-binding +1
Hard 86%
7. A Fresh Cell Per Call Is Not the Loop Bug
closureslate-binding +1
Hard 75%
8. Shared Cells Across Sibling Closures
nonlocalclosures +1
Hard 63%

Up next

8 of 8 questions here are still unsolved.