import sys def main(): if(len(sys.argv) < 3 ): print "Invalid command line arguments to program.Please supply two or more strings to sort." else : pname = sys.argv[1] for i in sorted(sys.argv): if(i != pname): print i, if __name__ == '__main__': main()
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "<builtin>/app_main.py", line 75, in run_toplevel File "<string>", line 15 if __name__ == '__main__': ^ IndentationError: unindent does not match any outer indentation level
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!