3 ms·
"Python has an "invisible close brace" character, the newline, which closes a varying number of braces" The idea that the end of a block is invisible isn't rea
by voyou 10y ago
"Python has an "invisible close brace" character, the newline, which closes a varying number of braces"
The idea that the end of a block is invisible isn't really right, though. The newline doesn't end the block. The block ends at the next line containing non-whitespace text at a lower indentation level. In other words, it only ends when it becomes visible that it has ended.