fork download
  1. out_file = open(to_file, 'w')
  2. out_file.write(indata)
  3.  
  4. open(to_file, 'w').write(indata).close()
Runtime error #stdin #stdout #stderr 0.18s 23492KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
NameError: name 'to_file' is not defined