Monday, May 23, 2016

Module 2 Python Fundamentals Part 1 - String me along.....

Process Summary Notes:
Part 1, Step 4: Calculate the length of your last name.
This step involves two separate actions that can be combined into one line of code, or can be done on two lines of code. Give a detailed explanation of how you completed this step.
1.       I assigned my full name as StringName and then used the split function to separate it into a list (variable listName).
2.       I created the variable lastNameLen and gave it a value of len(listName[1]).  This calculated the length of the last name item in my list.

I know it is still quite early in the semester, but I am enjoying python coding and finding it to be more simple than I had expected.  I think this is going to be an incredibly valuable skill for both GIS and critical thinking!

Below are my results and my flow chart.



No comments:

Post a Comment