import sysfrom os import pathtest = sys.argvif path.isfile(sys.argv[2]): print test
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 4, in <module> IndexError: list index out of range
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!