GIS3015

Thursday, May 26, 2016

Python Fundamentals Part 1

This week I delve into the fundamentals of Python and how it applies to GIS in ArcMap. This week's exercises and lab covered basic Python Script execution which serves as the foundation for the things to come in this class. I learn how to create a String of my full name and then split it (the name) into a list (first name and last name), before printing out the last name. I also executed a script that calculated the numbers of alphabets in my last and then multiply the number generated by 3.

The primary objective of this lab are:

  1. Assign string variables
  2. Use methods and functions to manipulate lists and strings
  3. Perform basic math functions
  4. Learn how to use the ArcGIS Python "help" function to write codes
  5. Learn the basics of conditional statements
The image below shows Python's Interactive Window the script that prints my last name and the length of the last name multiplied by 3.



Last Name Multiplied by 3
The exercise past of this module was fun and aided assimilation of the module content.

No comments:

Post a Comment