31 May 2023

M2 Python Environments & Flowcharts

 This week’s lab is the beginning of learning to find errors, run simple scripts, and put some longer scripts together. As a first step, we needed to simply use a script to print our name. Print in Python means just showing results. The second step was to figure out errors that were intentionally entered into a script. We needed to find the errors and correctly run the script. In step 3 for this assignment we had to create random numbers using a while loop and in step 4 use an if-else script to remove a chosen random number.

Writing a script is straightforward in that you type and hit run. However, the caveat to it all is “Does it work?”. It is quite frustrating at times when you look at so many characters on a screen and cannot errors. That said I look forward to the next week’s module. It sounds cliched but it is the only way to learn sometimes, jump in, and you will sink or swim. The first of two screenshots shows the results of scripts we had to fix random errors built into the script. This was a challenge and fun, it helped to enlarge the screen and font to better see any errors. included in this are also the random numbers that were generated and the removal of a chosen integer. Below this is the flowchart I created to help break down the steps. Doing this is helpful in visualizing what needs to be done with writing the script. It also is an asset in the creative thinking process.




No comments:

Post a Comment

UWF Student. Aspiring GIS Analyst.

Key takeaways from a GIS job search

  A job search can be daunting, time-consuming, and frustrating. There are words to add to that short list that are more-or-less synonyms of...