GEOG 489
Advanced Python Programming for GIS

1.3 Import & loops revisited, and some syntactic sugar

PrintPrint

To warm up a bit, let’s briefly revisit a few Python features that you are already familiar with but for which there exist some forms or details that you may not yet know, starting with the Python “import” command. We are also going to introduce a few Python constructs that you may not have heard about yet on the way. 

It is highly recommended that you try out these examples yourself and experiment with them to get a better understanding. The examples work in both Python 2 and Python 3, so you can use any Python installation and IDE that you have on your computer for this. If you are not sure what to use, you can also look ahead at the part of Section 1.5 about getting a Python 3 IDE for ArcGIS Pro, spyder, up and running and then come back to this section here.