Python list index out of range on return value of split
I’m writing a simple script that is trying to extract the first element from the second column of a .txt input file. My input file looks like this: I want my delimiter to be a comma. When I print the length of the line out, I’m getting 5 elements (as expected). However, whenever I try … Read more