Question: A file exists on the disk named students.txt. The file contains several records, and each record contains two fields: (1) the students name, and (2)
A file exists on the disk named students.txt. The file contains several records, and each record contains two fields: (1) the student’s name, and (2) the student’s score for the final exam. Write code that deletes the record containing “John Perz” as the student name.
Step by Step Solution
3.47 Rating (147 Votes )
There are 3 Steps involved in it
To delete a record from a file you can follow these steps in Python Open the file in read mode and r... View full answer
Get step-by-step solutions from verified subject matter experts
