Computer Science, asked by midhunamurali2019, 7 months ago

def binfile():

import pickle

file = open('data.dat','wb')

while True:

x = int(input('enter the integer='))

pckle.dump(x,file)

ans = input('do y want to enter more Y/N:')

if ans.upper () == 'N':

file.close()

file = open('dat.dat','rb')

try:

while True:

y = pickle.load(file)

print(y)

except EOFError:

pass

file.close()


binfile()








what is the error in this program

Answers

Answered by Falcon06
0

Answer:

there are no semicolon after a single sentence

Similar questions