I messed about for far too long because I was using len(line) and wasn't aware it was also counting the line break. Ended up doing 'linelength = len(lines[0]) - 1' because I didn't want to read up on importing it properly. At least I'm no longer using Pandas dataframes.
I messed about for far too long because I was using len(line) and wasn't aware it was also counting the line break. Ended up doing 'linelength = len(lines[0]) - 1' because I didn't want to read up on importing it properly. At least I'm no longer using Pandas dataframes.
https://github.com/TijmenK/AoC2020/blob/main/day3.py