Ad
  • Custom User Avatar

    The i here is just a number, so i+1 is fine. If you had tried to do lines[i+1] then you might run into an issue.

    But also range(0) is empty, so no values are computed for empty lists anyway.