Cant Print a list value in python : im trying to organize my server logs a little that are splited by "|"
and now i want to change the positing of the items when i put them in a list and trying to print it out to save it in a new file it give me 
    print(result[0])
IndexError: list index out of range
it is the same with every position in the list not only 0


        with open("logs-DD-MM-YYYY.txt") as f:
             for line in f:
    	         result = line.split('|')
    	         print(result[0])


