Posts

Showing posts from May, 2025

Module 2: Python Fundamentals.

Image
  This week's assignment was to create a script, the results of which are shown above. The first part of the script prints my last name. The second part was to run a dice game, which ran perfectly after we fixed the code. The last part creates and prints a list of 20 random numbers between 0 and 10, and identifies if the chosen number is in the previously created list and, if so, removes any instances of the chosen integer.       One of the things that I learned this week was how to create a script completely from scratch, which continues last weeks work of doing all of the setup for script. This week was learning and applying the fundamental language of Python such as data structures, expressions, and functions. It was fun to actually start getting into programming.  

Module 1: Python Environments & Flowcharts

Image
This week’s assignment was to prepare us for the upcoming assignments, learn how to make a flowchart, as well as, to learn a little more about Python and how IDLE and ArcGIS notebooks look and their differences.  The Zen of Python, written by Tim Peters, is a number of guiding principles for writing a clean python code; prioritizing readability and efficiency. It also emphasizes that Python should be easy to read, understand and explain and there should be an obvious and clear way to do things or to resolve a problem. It states that writing code should be simple and explicit while remaining flexible.