fork download
  1. with open('f.txt', 'r') as f:
  2. var = f.read()
  3.  
  4. if var:
  5. pass
Runtime error #stdin #stdout #stderr 0.02s 8688KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'f.txt'