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:
- Assign string variables
- Use methods and functions to manipulate lists and strings
- Perform basic math functions
- Learn how to use the ArcGIS Python "help" function to write codes
- 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