How can I transfer the lines of txt file into alist? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I transfer the lines of txt file into alist?

I want to read a txt file of Id students and their answers of multiple-choice questions.. Then I want to read each line and make a list for each student.. I used for loop to read the lines but then I couldn't make a list for each line

23rd Feb 2019, 8:43 AM
Student
Student  - avatar
1 Answer
+ 2
Please show your code or at least the format the txt file is in... https://www.sololearn.com/Discuss/1316935/welcome-to-sololearn-forum/
23rd Feb 2019, 8:55 AM
Anna
Anna - avatar