Skip to main content
my python programs
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
October 19, 2020
Writing list to binary file
f=open("binfile.bin","wb")
num=[5, 10, 15, 20, 25]
arr=bytearray(num)
f.write(arr)
f.close()