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

Thursday, July 25, 2024

Program for write data in binary file in python

 


Program for write data in binary file in python





import pickle

f=open("ram.dat","wb")

a=[]

roll=int(input("Enter the Student Roll Number"))

name=input("Enter the Student name")

marks=int(input("Enter the Student marks"))

b=[roll,name,marks]

a.append(b)

pickle.dump(a,f)

f.close()



Hello friends  please share  like commends  








No comments:

Post a Comment

for more information please share like comment and subscribe