Write a function create() to create a binary file to store the records of 5 students.
Answers
Answered by
1
Answer:
Each Student Record should have:
Name
Roll Number
Age
Total Marks
Explanation:
FOLLOW ME
Answered by
1
Answer:
Explanation:
def create( ):
import pickle as p
f=open ('filename',"wb")
s=[ ]
for i in range (5):
r=int(input("enter roll number"))
n=str(input("enter the name"))
s.append([r,n])
p.dump(s,f)
f.close()
Similar questions