program for find max number in a record in binary file in python
Program for find max in binary file
Binary file program in Python Class 12
#program for find maximum number from binary file
import pickle
f=open("ram.dat","rb")
data=pickle.load(f)
maxm=-1
for i in data:
if i[2]>maxm:
maxm=i[2]
z=i
print("student with maximum number is: ",z)
f.close()
No comments:
Post a Comment
for more information please share like comment and subscribe