from sys import argv – what is the function of “script”
Generally, the first argument to a command-line executable is the script name, and the rest are the expected arguments. Here, argv is a list that is expected to contain two values: the script name and an argument. Using Python’s unpacking notation, you can write as while also throwing errors if there are an unexpected number of arguments … Read more