fork download
  1. f = open("file_a_1000", "r")
  2. a = f.readlines()
  3.  
  4. f = open("file_b_1000", "r")
  5. b = f.readlines()
  6.  
  7. i = 0
  8. for x in b:
  9. if a.count(x) > 0:
  10. a.remove(x)
  11.  
  12. f = open("file_c_1000", "w")
  13. for x in a:
  14. f.write(x + "\n")
Runtime error #stdin #stdout #stderr 0.01s 7848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'file_a_1000'