This thread appears to use the same data, and so is probably the same homework problem as http://www.daniweb.com/software-development/python/threads/439504/converting-a-list-to-a-a-string-of-integers
We should perhaps combine them into one.
['ID ', ' Last ', ' First', ' Lecture', ' Tutorial', ' A1', ' A2', ' A3', ' A4', ' A5\n']
In the case of the code in this thread, nothing will happen unless the length of the line read.split() is 5. It will be 10 and I don't think the OP can come up with code to
"hmmm... would i slice the string between the 5th and 6th commas ?".
So should we post a "how to read a file, split the line, and access elements 6 through 10"? They probably should test for first character is a number as well.
Also the following code shows that there is no basic understanding of the different types of data containers which means that hints and partial code will not be enough. Either a poor teacher or somebody didn't pay attention in class.
for line in file:
newline = str(line)