5 ms·
> If `...inner...` is dedented The problem usually isn’t …inner… being dedented, but …outer… being indented. Which usually won’t produce an error, since anythi
by dragonwriter 5y ago
> If `...inner...` is dedented
The problem usually isn’t …inner… being dedented, but …outer… being indented. Which usually won’t produce an error, since anything that could be in …outer… could also be in …inner… without error.
> Additionally, you probably wouldn’t want to write nested for-loops anyway, but something like flattening the inner loop into a return value.
Nested for-loops aren’t uncommon in real-world code. And, I…am not sure what you are saying here. Loops are imperative constructs, not return values.