Saturday, June 1, 2013

Week 3 - Python Fundamentals I
GIS 4102
 
This week the class looked closely at the foundation and building blocks of Python script.  We looked at using variables, strings, lists, functions, methods, math equations, as well as conditional statements.
 
The screenshot above is the results of a python script that I wrote.  In the script I was tasked with identifying my full name, breaking down that full name string into a list, identifying my last name from that list, and printing the result.  From there the script went on to identify how many characters made up my last name and multiplied that by the value of 3.  The script then printed the results of that equation.
 
The results were:
 
Griswold
24
 
This was a great opportunity to utilize all the Python features we have learned up to this point.  I am excited to see what is next.
 

No comments:

Post a Comment