Q:

List Index Out Of Range error when not out of range

I have a data file which only contains the following line:
"testA" "testB":1:"testC":2

Now when I split this line, and print the resulting list(w) I get the following:
['"testA"', '"testB":1:"testC":2']

[]

Now when I want to access w[0], it returns "testA" just fine, but when I print w[1], it crashes and gives a list index out of range error, but still prints it out "testB":1:"testC":2
Any help would be much appreciated! 

A:

The answer was that the program read the next line after the first one which it split, and that line was empty.  So as soon as it tried to index the content of that (empty line) it crashed.  That's why it DID print the first line, and then crashed.  Thanks a lot for your help, though!