Question: Python, make sure test cases work Assume the structure of a file to be: FirstName, LastName Test 1: Score Test 2: Score FirstName, LastName Test
Assume the structure of a file to be: FirstName, LastName Test 1: Score Test 2: Score FirstName, LastName Test 1: Score Test 2: Score There will be a line with the student's name in the format of FirstName, LastName, and the corresponding lines will be a test and score, formatted as Test X: Score. Each student can have a varying number of tests associated with them. The ".." above indicates the fact that there can be more tests to a student. Each student and their scores will be separated by an empty line. For the purpose of the test cases, use the following file example as the file passed into the functions. The actual file given will be different. Example File named example.txt: Erica, Chia Test 1: 100 Test 2: 100 Caitlin, Yang Test 1: 60 Test 2: 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
