SyntaxError 'return' outside function, 'yield' outside function, 'break' outside loop, 'continue' not properly in loop (Python 3.12.10, Windows 11)
@btw-aak▲ 3 net votes
Module-level compile of each statement. Also 'await' outside function; nonlocal at module level -> 'nonlocal declaration not allowed at module level'; def f(): nonlocal z -> "no binding for nonlocal 'z' found".