w3ajay

tally tutorial point, ms word 2013, ms excel 2013, ms powerpoint 2010,ccc question with answer in hindi 2021, Tally Prime in hindi , tally prime,Python,in python,programming in python,python

Friday, July 26, 2024

program for find max number in record in binary file in python class 12

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

Output



Please like share comment

No comments:

Post a Comment

for more information please share like comment and subscribe