From 98ca910f0b8cb1137412373e3cce0a922cf0acd3 Mon Sep 17 00:00:00 2001 From: SushmitaY <30928963+SushmitaY@users.noreply.github.com> Date: Tue, 24 Oct 2017 21:23:16 +0530 Subject: [PATCH] Update classmodify.py Rename your variable from fOut to fIn in line 50 as you are opening the file in read mode. --- classmodify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classmodify.py b/classmodify.py index d3e20ab..16d3db0 100644 --- a/classmodify.py +++ b/classmodify.py @@ -47,11 +47,11 @@ def computeModeratedMarks(file1, file2, addPercent): fOut.close() - fOut = open(file2, 'rb') + fIn = open(file2, 'rb') while True: try: - print(pickle.load(fOut)) + print(pickle.load(fIn)) except EOFError: break