Sys.Argv[1] is used to access the second command line argument passed to a Python script. If there are not enough arguments, i.e. if only one argument is passed, then Sys.Argv[1] will be out of range and cause this error.