GIS5103 Module 2: Python Fundamentals
This week’s lab in GIS Programming focused on the fundamentals of Python. We worked with string variables, how to include comments in script in a way that wouldn’t impact the script outcome, how to iterate variables within loops to control script workflow, as well as created loops and conditional statements. Part 1 of lab included being able to assign a variable as a string, splitting that string into a list, and indexing to pluck the last string list item as the output when ran. For this part, we assigned our full name as the variable and indexed the script to print our last name. Part 2 of lab consisted of looking at prewritten script for a dice game and trying to determine the (2) errors that prevented the script from running without error. Part 3 of lab asked that we create a loop that will add (20) random numbers between (0) and (10) to a list. We needed to utilize a while loop that appended a randomly generated number...