2 ms·
https://docs.python.org/3/reference/compound_stmts.html https://docs.python.org/3/reference/compound_stmts.html "Only the [indented] form of a suite can contai
by jwilk 4y ago
https://docs.python.org/3/reference/compound_stmts.html https://docs.python.org/3/reference/compound_stmts.html
"Only the [indented] form of a suite can contain nested compound statements; the following is illegal, mostly because it wouldn’t be clear to which if clause a following else clause would belong:
if test1: if test2: print(x)
"