Python quizzes: #closures

4 quizzes about #closures, with an explanation for every answer.

4 Scope & global Hard Local and global names, nonlocal, closures and the UnboundLocalError trap. Python · Functions #scope#closures#gotchas 10 questions · ~8 min Not started Start
5 Decorators Hard Read and write decorators, from simple wrappers to decorators that take arguments. Python · Pythonic Python #decorators#closures#interview 10 questions · ~8 min Not started Start
4 Closures Hard Understand how functions remember the variables around them, a favorite interview topic. JavaScript · Functions & Scope #closures#interview 10 questions · ~8 min Not started Start
3 Closures in Loops Hard The classic interview puzzle of functions created inside loops, with var, let and every fix in between. JavaScript · JavaScript Interview Questions #closures#interview 10 questions · ~8 min Not started Start

Other tags: