with open('f.txt', 'r') as f: var = f.read() if var: pass
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 1, in <module> FileNotFoundError: [Errno 2] No such file or directory: 'f.txt'
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!