I am trying to count the lines in a file but the intellisense is throwing a warning that the variable line
is never used. This makes me assume there is a better way of doing this.
Please note I am not asking how to efficiently count the rows!
with open(FILE, newline='') as f:
reader = csv.reader(f)
for line in reader:
counter = counter + 1
Is there a better way of doing this?