Ok chaps and chapettes, stand down..I've got this
I changed the code to :
student_list = []
#opens the csv file, takes out the information and saves them in the Student Class
student_file = open('student_list.csv')
student_file_reader = csv.reader(student_file)
for row in student_file:
row_string = str(row)
row_parts1,row_parts2,row_parts3,row_parts4,row_parts5 = row_string.split(',')
student_list.append(Students(row_parts1,row_parts2,row_parts3,row_parts4,row_parts5))
print (student_list[0])
streamlining the append to the list by a line, then added to my class the repr bit
class Students():
def __init__(self,student_id, first_name,second_name,student_parent,parent_email):
self.student_id = student_id
self.first_name = first_name
self.second_name = second_name
self.student_parent = student_parent
self.parent_email = parent_email
#def __repr__(self):
#return {self.student_id,self.first_name,self.second_name,self.student_parent,self.parent_email}
def __repr__(self):
return self.student_id + " " + self.first_name + " " +self.second_name + " " + self.student_parent + " " + self.parent_email
now it prints the information from the the first index of the list.
Huzzah!
Hope this helps someone.