Wednesday, June 13, 2018

GIS5103 - GIS Programming - Module 4




This weeks module focused on debugging scripts. There were three separate exercises involved.

















1) The first exercise required a single correction to be done to an already provided script in order to make it run. The mistake had to be located and fixed.



2) The second script contained 8 errors in total, making the task more challenging. Many of these were simple syntax errors, and I was able to locate them by running the script and using the error messages as guides.
















3.) The third script required us to leave the error uncorrected, and re-write the script using the try-except method in order to acieve the result pictured above.

No comments:

Post a Comment