Question: 3 5 . Implement execute The main application function is execute. It takes the command line arguments and decides whether to call discover _ violations

35. Implement execute
The main application function is execute. It takes the command line arguments and decides whether to call discover_violations or tests.test_all(). If the user provides a data file, the function runs discover_violations. If the user provides the argument --test it runs the main test function.
You have already seen an example of something similar in the course videos. The application to_celsius contains a function execute that can either be used to test the function or run the temperature application. This code is available in the samples folder under unit3. Take a look at this sample code now and use it to complete your execute function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!