f = open("file_a_1000", "r") a = f.readlines() f = open("file_b_1000", "r") b = f.readlines() i = 0 for x in b: if a.count(x) > 0: a.remove(x) f = open("file_c_1000", "w") for x in a: f.write(x + "\n")
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 1, in <module> IOError: [Errno 2] No such file or directory: 'file_a_1000'