Question: 7.11 LAB: Student Details The program should read the student details from the file student_details.txt and create a new object for each student containing their

7.11 LAB: Student Details The program should read the student details from the file student_details.txt and create a new object for each student containing their name and student id LAB ACTVTY 7.11.1: LAB: Student Details 0/5 Additional files provided by your instructor student details.txtDownload main.py Load default template... 1 class studentO): def info(self, name, st_id): self.name name self.st id st_id 4 7'"'Edit code Below." 8 file 9 st [1 fori in open(' student-details, txt', 'N4').readline().split(' ' 10 for i in range(len(file)-2): s = student() 1 12 13 S.info(lL0]+""+11], int(l[2])) 14 15 for i in st: [x for x in file[i].split(' .)] = st.append(s) 16 print("0's id is [lj".format(i.name, i.st.id))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
