NAME.append (Line.split(",")[1].rstrip()) IndexError: list index out of range
import sys
if (len(sys.argv) > 1):
f = open(sys.argv[1], "r");
print "file opened";
line = [];
for line in f:
line = line.strip("
' '")
line = line.split(",")
print line[1]
f.close();