How to fix the error Run out of input?

I have in the code originally and it works. When you restart when you have already created a file that stores data, gets an error Run out of input.
user_list = []
password_list = []
lesson_assessments = dict()
try:
 opn_f = open('datafile.data', 'rb')
except IOError:
None
else:
 user_list = pickle.load(opn_f)
 password_list = pickle.load(opn_f)
 lesson_assessments =pickle.load(opn_f)

error in line password_list = pickle.load(opn_f)
April 7th 20 at 15:43
1 answer
April 7th 20 at 15:45
And what You three read the same file?
Also try after each boot file to cause opn_f.seek(0)

Find more questions by tags Python