Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPythonCPython bytecode and disSingle-choice MCQ

In the bytecode for the closure below, what opcode loads x inside inner, and what mechanism makes that work?

def outer(): x = 1 def inner(): return x return inner