Sunday, May 31, 2026

Module 3

 This week in GISProgramming we were learning about finding and fixing errors in our scripts. we were given 3 different scripts with errors. the first script had a syntax error and a runtime error that needed to be fix. I learned how to quickly check for syntax errors using IDLE but pressing "ALT + X" the second script had more errors that need to be addressed. The last script there was an error that I was told not to fix, but the add a try-except statement. this allows the script to keep running even though it has an error. 







Saturday, May 23, 2026

Module 2

  This week I learned how to use methods, functions, strings, and loops. This was my first attempt at creating a script and I did feel intimated. After doing the readings I did feel more confident. I pritned my last name from a string, made fixes to the provided dice game script, created a list of 20 random numbers from 1-10. I then determined an unlucky number and created a code to remove this unlucky number from the list and tell me how many times it was removed. I did have troubles with formatting and indenting in the scripts.

 

Saturday, May 16, 2026

Module 1 Python Environments & Flowcharts

  I this weeks lab we used IDLE to run a script provided in the R:\GisProgramming folder. IDLE has two windows that pop up. One is a shell window and one is an editor window. To run the script I selected file and then selected open. After selecting the necessary script I pressed run. The result of this code was all of the folders I will need for this course we made instantly. 

I learned the basics of pseudocode and flowcharts in the readings this week and created a flowchart illustrating the converting of 3 radians to degrees and print the result



Using IDLE I typed "import this" and pressed run to get the poem "The Zen of Python" This poem is mixing references in python to real life scenarios and vice versa. The line errors should never pass silently would mean in python errors in your code will not be silent, they will be called out by error messages. This poem is almost like a set of guidelines that a coder could look to for the correct ways to create a script. Readability counts meaning making the script readable is important. In the face of ambiguity, refuse the temptation to guess could mean don’t just guess on how to solve issues in your code, get a definite answer.