Module 2 - Python Fundamentals

This week, in the second GIS Programming lab, was about Python Fundamentals.

In this lab we expanded more on what was learned in the previous lab and tried to code some python ourselves. The results of which you can see below.


So looking at this it may all be confusing with all these numbers and rolls, but please allow me to explain.

The first part of the lab had us print our last name from a created list, that is why you see LeForce, my last name, at the top. This flowchart shows how I managed to accomplish this function.


The second part with the rolls was actually a bit of debugging to make the provided code that we were given to work. This involved two lines of code that needed to be changed or adding a function to the data.

The last part with all the numbers was a bit more advanced and had us generate a list of 20 numbers all ranging from 0 to 10. We also had to then make another script to then delete an unlucky number of our choice. I chose 7 as it would be a nice inversion from saying 7 is lucky. I made a flow chart for both and you can see them below. The one that generated the numbers is on the left, while the one that removed the unlucky number is on the right.

In finishing this lab, I have grown wiser to the knowledge of python and hope I can work on it more while making less mistakes than I did in this lab.



Comments

Popular posts from this blog

About me

Module 4 - Data Classification

Module 1 - Fundamentals