Computer Science, asked by abhishe76, 4 months ago

Write a function create() to create a binary file to store the records of 5 students.​

Answers

Answered by Anonymous
1

Answer:

Each Student Record should have:

 Name

 Roll Number

 Age

 Total Marks

Explanation:

FOLLOW ME

Answered by Anonymous
1

Answer:

hi

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()

hope \: it \: helps \: you...☺

Similar questions