4 ms·
Just go back to the original example > if rawdata.count("\n", i, j) as nlines: I have to read the beginning of the line, then jump to find the as (which is no
by raverbashing 8y ago
Just go back to the original example
> if rawdata.count("\n", i, j) as nlines:
I have to read the beginning of the line, then jump to find the as (which is not very obvious in the expression) then find the var name.
> if nlines := rawdata.count("\n", i, j):
Here I do a continual motion from the beginning of the line up to the start of the condition
> the left-hand side of the assignment is completely irrelevant to the if statement
It is relevant to the subsequent block of code, I need to know what 'nlines' mean.