I am sure its just the indentation
Code:
import re
returnline = []
f = open("StudentList.txt", "r")
for line in f.readline():
returnline.append(re.compile(' ').sub(',', line[0:-1]))
for item in returnline: #its dis bit that is pain when i put it there it says
IndentationError: unindent does not match any outer indentation level (<pyshell#92>, line 3)
I dont know wat i am doing wrong