Module 2 for GIS Programming introduced us to the fundamentals of Python programming. This included but was not limited to using data types such as strings and lists, utilizing various methods and functions, and using for and loop structures.
In the lab, we were assigned 4 tasks that built upon each other ultimately running a script for a dice game. Step 1 involved creating a variable for your full name using a string. This was followed by splitting the string into a list and then using indexing to print your last name.
Step 2 involved correcting two errors in a pre-written script for a dice game followed by Step 3 which required creating a loop that added 20 random numbers between 0 and 10 to a list. I began to struggle at this point but after several attempts, I successfully ran a script. After this, I was completely overwhelmed and burnt out. Unfortunately, I was unable to complete Step 4. Below is a screenshot depicting my outputs as well as a flowchart showing the basic steps and what I completed.
No comments:
Post a Comment