Thursday, 6 November 2025

Binary files practice

 Write a Python functions :

STUDENT_ADD() that adds new students to the file student.dat. 

Each record in the file contains the following information for a student:

  • Roll Number (integer)

  • Name (string)

  • sPercentage (float)

STUDENT_UPDATE() that changes the percentage of a certain roll number.

>Display if student not found



No comments:

Post a Comment