My repl died unexpectedly. What was the problem? The code seems okay.
I get sh: 1: cls: not found Invalid Number of arguments
sh: 1: cls: not found Invalid Number of arguments
sys.exit()
returns false and therefore it terminates itself
sys.argv
['main.py']
I get
sh: 1: cls: not found Invalid Number of arguments
line 24:
sys.exit()
len(sys.argv) == 4
sys.argv
returns['main.py']
. This has to do with the way you wrote the code. If you copied+pasted/forked from elsewhere, you may need to adapt it to repl.it