I am trying to read through a file and skip certain lines. I'm using str.startswith()
to do this:
for lines in analysis:
if line.startswith("#"):
continue
Then, I have further cases that analyzes all subsequent lines.
However, I get the error:
NameError: global name 'line' is not defined
Why doesn't this work...?