Computer Science, asked by LearnSomething8532, 20 days ago

Write a method DeleteRecord() that accepts a roll number as an argument and deletes the records of the student from a pickled file 'student.dat'​

Answers

Answered by Anonymous
0

Answer:

Computer Science with Python–XII A.4 35. Write a user-defined function CountLines() that counts the number of lines in a text file ‘Project.txt’

Section II

Explanation:

Answered by priyarksynergy
0

def Delete Record( a):
     for i in student.dat:

           if i. roll_ no == a:

               student.dat. remove(i)

Explanation:

A method is used to denote a function inside of a lass.

The required method is:

def Delete Record( a):
     for i in student.dat:

           if i. roll_ no == a:

               student.dat. remove(i)

Similar questions