
Feb. 8, 2021
12:22 a.m.
On Sun, 7 Feb 2021 at 23:55, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
On 8/02/21 6:59 am, Christopher Barker wrote:
I find myself reading entire files into memory and then processing them, so as to avoid having to extra-indent all the processing code.
I don't know why some people seem to be so afraid of indentation levels. Remember, you don't *have* to indent by 4 spaces. I often write Python with 2-space indents, which is quite readable and gives me twice as many indentation levels to play with.
My preferred option is to use functions. I would rather not have too many levels of indentation regardless of how much actual horizontal space is involved. -- Oscar