Question: Python Programming def execute(args): Executes the application or prints an error message if executed incorrectly. The arguments to the application (EXCLUDING the application name)
Python Programming
def execute(args):
""" Executes the application or prints an error message if executed incorrectly. The arguments to the application (EXCLUDING the application name) are provided to the list args. This list should contain either 1 or 2 elements. If there is one element, it should be the name of the data set folder or the value '--test'. If there are two elements, the first should be the data set folder and the second should be the name of a CSV file (for output of the results). If the user calls this script incorrectly (with the wrong number of arguments), this function prints: Usage: python auditor dataset [output.csv] This function does not do much error checking beyond counting the number of arguments. Parameter args: The command line arguments for the application (minus the application name) Precondition: args is a list of strings
"""
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
