Script 1 Results: To find the errors in this script, I ran the module in Python to review the error messages to find out where the errors occurred. I was able to quickly fix the issues and get the script to run without any errors.
Script 2 Results: I used the same process of running the script and turning on line numbers to locate the errors. This one had multiple errors throughout including incorrect file names and file paths.
Script 3 Results: This script was the most difficult for me to complete. It required including try-except statements - one for Part A and one for Part B. At first, I attempted to include a try-except statement for an error that made it impossible for the project in which the script needed to open in order to execute all other functions in the script. Because, I made an exception for this statement, the script ran into errors at every single line. Once I fixed this simple syntax error at the beginning, I was able to make one try-except statement for the rest of the script in Part A and the script ran perfectly without errors. For Part B, there was another simple error in the file path that needed to be fixed. After that, I created another try-except statement and the script ran successfully.




Comments
Post a Comment