SlideShare una empresa de Scribd logo
1 de 25
Introduction to Python
Presented by : Ganesh kavhar
https://ganeshmkavhar.000webhostapp.com/
∗ Python is a high-level programming language
∗ Open source and community driven
∗ “Batteries Included”
∗ a standard distribution includes many modules
∗ Dynamic typed
∗ Source can be compiled or run just-in-time
∗ Similar to perl, tcl, ruby
Introduction to Python
∗ Unlike AML and Avenue, there is a considerable base
of developers already using the language
∗ “Tried and true” language that has been in
development since 1991
∗ Can interface with the Component Object Model
(COM) used by Windows
∗ Can interface with Open Source GIS toolsets
Why Python?
∗ Visual Basic is still the method of configuring and
customizing ArcMap
∗ If you have a button on the toolbar, it’s VB
∗ Python scripts can be placed in ArcToolbox
∗ Python can be run from the command line without
ArcMap or ArcCatalog being open
∗ Using just the GIS Engine, lower overhead
∗ Rapid prototyping, ease of authoring, etc.
Why not Visual Basic?
∗ IDLE – a cross-platform Python development
environment
∗ PythonWin – a Windows only interface to Python
∗ Python Shell – running 'python' from the Command
Line opens this interactive shell
∗ For the exercises, we'll use IDLE, but you can try them
all and pick a favorite
Python Interfaces
IDLE – Development Environment
∗ IDLE helps you program in
Python by:
∗ color-coding your
program code
∗ debugging
∗ auto-indent
∗ interactive shell
Example Python
∗ Hello World
print “hello world”
∗ Prints hello world to
standard out
∗ Open IDLE and try it out
yourself
∗ Follow along using IDLE
∗ Python is an object oriented language
∗ Practically everything can be treated as an object
∗ “hello world” is a string
∗ Strings, as objects, have methods that return the
result of a function on the string
More than just printing
String Methods
∗ Assign a string to a
variable
∗ In this case “hw”
∗ hw.title()
∗ hw.upper()
∗ hw.isdigit()
∗ hw.islower()
∗ The string held in your variable remains the same
∗ The method returns an altered string
∗ Changing the variable requires reassignment
∗ hw = hw.upper()
∗ hw now equals “HELLO WORLD”
String Methods
∗ Lists (mutable sets of strings)
∗ var = [] # create list
∗ var = [‘one’, 2, ‘three’, ‘banana’]
∗ Tuples (immutable sets)
∗ var = (‘one’, 2, ‘three’, ‘banana’)
∗ Dictionaries (associative arrays or ‘hashes’)
∗ var = {} # create dictionary
∗ var = {‘lat’: 40.20547, ‘lon’: -74.76322}
∗ var[‘lat’] = 40.2054
∗ Each has its own set of methods
Other Python Objects
∗ Think of a list as a stack of cards, on which your information
is written
∗ The information stays in the order you place it in until you
modify that order
∗ Methods return a string or subset of the list or modify the
list to add or remove components
∗ Written as var[index], index refers to order within set (think
card number, starting at 0)
∗ You can step through lists as part of a loop
Lists
∗ Adding to the List
∗ var[n] = object
∗ replaces n with object
∗ var.append(object)
∗ adds object to the end of the list
∗ Removing from the List
∗ var[n] = []
∗ empties contents of card, but preserves order
∗ var.remove(n)
∗ removes card at n
∗ var.pop(n)
∗ removes n and returns its value
List Methods
Lists in ArcToolbox
You will create lists:
∗ Layers as inputs
∗ Attributes to match
∗ Arrays of objects
You will work with lists:
∗ List of field names
∗ List of selected features
∗ Like a list, tuples are iterable arrays of objects
∗ Tuples are immutable –
once created, unchangeable
∗ To add or remove items, you must redeclare
∗ Example uses of tuples
∗ County Names
∗ Land Use Codes
∗ Ordered set of functions
Tuples
∗ Dictionaries are sets of key & value pairs
∗ Allows you to identify values by a descriptive name
instead of order in a list
∗ Keys are unordered unless explicitly sorted
∗ Keys are unique:
∗ var[‘item’] = “apple”
∗ var[‘item’] = “banana”
∗ print var[‘item’] prints just banana
Dictionaries
∗ Python uses whitespace and indents to denote blocks
of code
∗ Lines of code that begin a block end in a colon:
∗ Lines within the code block are indented at the same
level
∗ To end a code block, remove the indentation
∗ You'll want blocks of code that run only when certain
conditions are met
Indentation and Blocks
∗ if and else
if variable == condition:
#do something based on v == c
else:
#do something based on v != c
∗ elif allows for additional branching
if condition:
elif another condition:
…
else: #none of the above
Conditional Branching
∗ For allows you to loop over a block of code a
set number of times
∗ For is great for manipulating lists:
a = ['cat', 'window', 'defenestrate']
for x in a:
print x, len(x)
Results:
cat 3
window 6
defenestrate 12
Looping with For
∗ We could use a for loop to perform geoprocessing
tasks on each layer in a list
∗ We could get a list of features in a feature class and
loop over each, checking attributes
∗ Anything in a sequence or list can be used in a For
loop
∗ Just be sure not to modify the list while looping
Looping with For
∗ Modules are additional pieces of code that further
extend Python’s functionality
∗ A module typically has a specific function
∗ additional math functions, databases, network…
∗ Python comes with many useful modules
∗ arcgisscripting is the module we will use to load
ArcGIS toolbox functions into Python
Modules
∗ Modules are accessed using import
∗ import sys, os # imports two modules
∗ Modules can have subsets of functions
∗ os.path is a subset within os
∗ Modules are then addressed by
modulename.function()
∗ sys.argv # list of arguments
∗ filename = os.path.splitext("points.txt")
∗ filename[1] # equals ".txt"
Modules
∗ Files are manipulated by creating a file object
∗ f = open("points.txt", "r")
∗ The file object then has new methods
∗ print f.readline() # prints line from file
∗ Files can be accessed to read or write
∗ f = open("output.txt", "w")
∗ f.write("Important Output!")
∗ Files are iterable objects, like lists
Files
∗ Check for type assignment errors, items not in a list,
etc.
∗ Try & Except
try:
a block of code that might have an error
except:
code to execute if an error occurs in "try"
∗ Allows for graceful failure
– important in ArcGIS
Error Capture
∗ Python Homepage
http://www.python.org/
∗ Dive Into Python
http://www.diveintopython.org/
∗ Learning Python, 3rd
Edition
http://www.oreilly.com/catalog/9780596513986/
∗ Getting Started Writing Geoprocessing Scripts
Available on ESRI's support page
∗ Official website
https://www.linkedin.com/in/ganesh-kavhar-81384075/
Additional Python Resources

Más contenido relacionado

La actualidad más candente

4. python functions
4. python   functions4. python   functions
4. python functions
in4400
 
Working with file(35,45,46)
Working with file(35,45,46)Working with file(35,45,46)
Working with file(35,45,46)
Dishant Modi
 
Oral presentation v2
Oral presentation v2Oral presentation v2
Oral presentation v2
Yeqi He
 

La actualidad más candente (20)

Lambda Expressions in Java
Lambda Expressions in JavaLambda Expressions in Java
Lambda Expressions in Java
 
Java Collections API
Java Collections APIJava Collections API
Java Collections API
 
Python internals and how they affect your code - kasra ahmadvand
Python internals and how they affect your code - kasra ahmadvandPython internals and how they affect your code - kasra ahmadvand
Python internals and how they affect your code - kasra ahmadvand
 
Java 8 Lambda Expressions
Java 8 Lambda ExpressionsJava 8 Lambda Expressions
Java 8 Lambda Expressions
 
Real World Generics In Swift
Real World Generics In SwiftReal World Generics In Swift
Real World Generics In Swift
 
Java 8 lambda
Java 8 lambdaJava 8 lambda
Java 8 lambda
 
Java 8 presentation
Java 8 presentationJava 8 presentation
Java 8 presentation
 
Intro to Functions Python
Intro to Functions PythonIntro to Functions Python
Intro to Functions Python
 
Java 8 - project lambda
Java 8 - project lambdaJava 8 - project lambda
Java 8 - project lambda
 
What is String in Java?
What is String in Java?What is String in Java?
What is String in Java?
 
4. python functions
4. python   functions4. python   functions
4. python functions
 
Working with file(35,45,46)
Working with file(35,45,46)Working with file(35,45,46)
Working with file(35,45,46)
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Scala - core features
Scala - core featuresScala - core features
Scala - core features
 
Introduction To Scala
Introduction To ScalaIntroduction To Scala
Introduction To Scala
 
Swift와 Objective-C를 함께 쓰는 방법
Swift와 Objective-C를 함께 쓰는 방법Swift와 Objective-C를 함께 쓰는 방법
Swift와 Objective-C를 함께 쓰는 방법
 
Oral presentation v2
Oral presentation v2Oral presentation v2
Oral presentation v2
 
Seeking Clojure
Seeking ClojureSeeking Clojure
Seeking Clojure
 
Java8 features
Java8 featuresJava8 features
Java8 features
 
Functional Java 8 in everyday life
Functional Java 8 in everyday lifeFunctional Java 8 in everyday life
Functional Java 8 in everyday life
 

Similar a Python by ganesh kavhar

INTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxINTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptx
Nimrahafzal1
 
PPT on Python - illustrating Python for BBA, B.Tech
PPT on Python - illustrating Python for BBA, B.TechPPT on Python - illustrating Python for BBA, B.Tech
PPT on Python - illustrating Python for BBA, B.Tech
ssuser2678ab
 

Similar a Python by ganesh kavhar (20)

Python first day
Python first dayPython first day
Python first day
 
Python first day
Python first dayPython first day
Python first day
 
Python Tutorial Part 1
Python Tutorial Part 1Python Tutorial Part 1
Python Tutorial Part 1
 
Should i Go there
Should i Go thereShould i Go there
Should i Go there
 
Processing data with Python, using standard library modules you (probably) ne...
Processing data with Python, using standard library modules you (probably) ne...Processing data with Python, using standard library modules you (probably) ne...
Processing data with Python, using standard library modules you (probably) ne...
 
presentation_intro_to_python
presentation_intro_to_pythonpresentation_intro_to_python
presentation_intro_to_python
 
presentation_intro_to_python_1462930390_181219.ppt
presentation_intro_to_python_1462930390_181219.pptpresentation_intro_to_python_1462930390_181219.ppt
presentation_intro_to_python_1462930390_181219.ppt
 
INTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptxINTRODUCTION TO PYTHON.pptx
INTRODUCTION TO PYTHON.pptx
 
Scala collections api expressivity and brevity upgrade from java
Scala collections api  expressivity and brevity upgrade from javaScala collections api  expressivity and brevity upgrade from java
Scala collections api expressivity and brevity upgrade from java
 
ENGLISH PYTHON.ppt
ENGLISH PYTHON.pptENGLISH PYTHON.ppt
ENGLISH PYTHON.ppt
 
Kavitha_python.ppt
Kavitha_python.pptKavitha_python.ppt
Kavitha_python.ppt
 
Engineering CS 5th Sem Python Module -2.pptx
Engineering CS 5th Sem Python Module -2.pptxEngineering CS 5th Sem Python Module -2.pptx
Engineering CS 5th Sem Python Module -2.pptx
 
PPT on Python - illustrating Python for BBA, B.Tech
PPT on Python - illustrating Python for BBA, B.TechPPT on Python - illustrating Python for BBA, B.Tech
PPT on Python - illustrating Python for BBA, B.Tech
 
python1.ppt
python1.pptpython1.ppt
python1.ppt
 
python1.ppt
python1.pptpython1.ppt
python1.ppt
 
Python Basics
Python BasicsPython Basics
Python Basics
 
python1.ppt
python1.pptpython1.ppt
python1.ppt
 
Lenguaje Python
Lenguaje PythonLenguaje Python
Lenguaje Python
 
pysdasdasdsadsadsadsadsadsadasdasdthon1.ppt
pysdasdasdsadsadsadsadsadsadasdasdthon1.pptpysdasdasdsadsadsadsadsadsadasdasdthon1.ppt
pysdasdasdsadsadsadsadsadsadasdasdthon1.ppt
 
coolstuff.ppt
coolstuff.pptcoolstuff.ppt
coolstuff.ppt
 

Más de Savitribai Phule Pune University

Más de Savitribai Phule Pune University (10)

Learn c programming
Learn c programmingLearn c programming
Learn c programming
 
R programming by ganesh kavhar
R programming by ganesh kavharR programming by ganesh kavhar
R programming by ganesh kavhar
 
Networking with java
Networking with javaNetworking with java
Networking with java
 
Python for data analysis
Python for data analysisPython for data analysis
Python for data analysis
 
Control statements in java programmng
Control statements in java programmngControl statements in java programmng
Control statements in java programmng
 
Search engines by ganesh kavhar
Search engines by ganesh kavharSearch engines by ganesh kavhar
Search engines by ganesh kavhar
 
Machine learning by ganesh kavhar
Machine learning by ganesh kavharMachine learning by ganesh kavhar
Machine learning by ganesh kavhar
 
Android apps
Android appsAndroid apps
Android apps
 
Android apps upload slideshare
Android apps upload slideshareAndroid apps upload slideshare
Android apps upload slideshare
 
Android app upload
Android app uploadAndroid app upload
Android app upload
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Python by ganesh kavhar

  • 1. Introduction to Python Presented by : Ganesh kavhar https://ganeshmkavhar.000webhostapp.com/
  • 2. ∗ Python is a high-level programming language ∗ Open source and community driven ∗ “Batteries Included” ∗ a standard distribution includes many modules ∗ Dynamic typed ∗ Source can be compiled or run just-in-time ∗ Similar to perl, tcl, ruby Introduction to Python
  • 3. ∗ Unlike AML and Avenue, there is a considerable base of developers already using the language ∗ “Tried and true” language that has been in development since 1991 ∗ Can interface with the Component Object Model (COM) used by Windows ∗ Can interface with Open Source GIS toolsets Why Python?
  • 4. ∗ Visual Basic is still the method of configuring and customizing ArcMap ∗ If you have a button on the toolbar, it’s VB ∗ Python scripts can be placed in ArcToolbox ∗ Python can be run from the command line without ArcMap or ArcCatalog being open ∗ Using just the GIS Engine, lower overhead ∗ Rapid prototyping, ease of authoring, etc. Why not Visual Basic?
  • 5. ∗ IDLE – a cross-platform Python development environment ∗ PythonWin – a Windows only interface to Python ∗ Python Shell – running 'python' from the Command Line opens this interactive shell ∗ For the exercises, we'll use IDLE, but you can try them all and pick a favorite Python Interfaces
  • 6. IDLE – Development Environment ∗ IDLE helps you program in Python by: ∗ color-coding your program code ∗ debugging ∗ auto-indent ∗ interactive shell
  • 7. Example Python ∗ Hello World print “hello world” ∗ Prints hello world to standard out ∗ Open IDLE and try it out yourself ∗ Follow along using IDLE
  • 8. ∗ Python is an object oriented language ∗ Practically everything can be treated as an object ∗ “hello world” is a string ∗ Strings, as objects, have methods that return the result of a function on the string More than just printing
  • 9. String Methods ∗ Assign a string to a variable ∗ In this case “hw” ∗ hw.title() ∗ hw.upper() ∗ hw.isdigit() ∗ hw.islower()
  • 10. ∗ The string held in your variable remains the same ∗ The method returns an altered string ∗ Changing the variable requires reassignment ∗ hw = hw.upper() ∗ hw now equals “HELLO WORLD” String Methods
  • 11. ∗ Lists (mutable sets of strings) ∗ var = [] # create list ∗ var = [‘one’, 2, ‘three’, ‘banana’] ∗ Tuples (immutable sets) ∗ var = (‘one’, 2, ‘three’, ‘banana’) ∗ Dictionaries (associative arrays or ‘hashes’) ∗ var = {} # create dictionary ∗ var = {‘lat’: 40.20547, ‘lon’: -74.76322} ∗ var[‘lat’] = 40.2054 ∗ Each has its own set of methods Other Python Objects
  • 12. ∗ Think of a list as a stack of cards, on which your information is written ∗ The information stays in the order you place it in until you modify that order ∗ Methods return a string or subset of the list or modify the list to add or remove components ∗ Written as var[index], index refers to order within set (think card number, starting at 0) ∗ You can step through lists as part of a loop Lists
  • 13. ∗ Adding to the List ∗ var[n] = object ∗ replaces n with object ∗ var.append(object) ∗ adds object to the end of the list ∗ Removing from the List ∗ var[n] = [] ∗ empties contents of card, but preserves order ∗ var.remove(n) ∗ removes card at n ∗ var.pop(n) ∗ removes n and returns its value List Methods
  • 14. Lists in ArcToolbox You will create lists: ∗ Layers as inputs ∗ Attributes to match ∗ Arrays of objects You will work with lists: ∗ List of field names ∗ List of selected features
  • 15. ∗ Like a list, tuples are iterable arrays of objects ∗ Tuples are immutable – once created, unchangeable ∗ To add or remove items, you must redeclare ∗ Example uses of tuples ∗ County Names ∗ Land Use Codes ∗ Ordered set of functions Tuples
  • 16. ∗ Dictionaries are sets of key & value pairs ∗ Allows you to identify values by a descriptive name instead of order in a list ∗ Keys are unordered unless explicitly sorted ∗ Keys are unique: ∗ var[‘item’] = “apple” ∗ var[‘item’] = “banana” ∗ print var[‘item’] prints just banana Dictionaries
  • 17. ∗ Python uses whitespace and indents to denote blocks of code ∗ Lines of code that begin a block end in a colon: ∗ Lines within the code block are indented at the same level ∗ To end a code block, remove the indentation ∗ You'll want blocks of code that run only when certain conditions are met Indentation and Blocks
  • 18. ∗ if and else if variable == condition: #do something based on v == c else: #do something based on v != c ∗ elif allows for additional branching if condition: elif another condition: … else: #none of the above Conditional Branching
  • 19. ∗ For allows you to loop over a block of code a set number of times ∗ For is great for manipulating lists: a = ['cat', 'window', 'defenestrate'] for x in a: print x, len(x) Results: cat 3 window 6 defenestrate 12 Looping with For
  • 20. ∗ We could use a for loop to perform geoprocessing tasks on each layer in a list ∗ We could get a list of features in a feature class and loop over each, checking attributes ∗ Anything in a sequence or list can be used in a For loop ∗ Just be sure not to modify the list while looping Looping with For
  • 21. ∗ Modules are additional pieces of code that further extend Python’s functionality ∗ A module typically has a specific function ∗ additional math functions, databases, network… ∗ Python comes with many useful modules ∗ arcgisscripting is the module we will use to load ArcGIS toolbox functions into Python Modules
  • 22. ∗ Modules are accessed using import ∗ import sys, os # imports two modules ∗ Modules can have subsets of functions ∗ os.path is a subset within os ∗ Modules are then addressed by modulename.function() ∗ sys.argv # list of arguments ∗ filename = os.path.splitext("points.txt") ∗ filename[1] # equals ".txt" Modules
  • 23. ∗ Files are manipulated by creating a file object ∗ f = open("points.txt", "r") ∗ The file object then has new methods ∗ print f.readline() # prints line from file ∗ Files can be accessed to read or write ∗ f = open("output.txt", "w") ∗ f.write("Important Output!") ∗ Files are iterable objects, like lists Files
  • 24. ∗ Check for type assignment errors, items not in a list, etc. ∗ Try & Except try: a block of code that might have an error except: code to execute if an error occurs in "try" ∗ Allows for graceful failure – important in ArcGIS Error Capture
  • 25. ∗ Python Homepage http://www.python.org/ ∗ Dive Into Python http://www.diveintopython.org/ ∗ Learning Python, 3rd Edition http://www.oreilly.com/catalog/9780596513986/ ∗ Getting Started Writing Geoprocessing Scripts Available on ESRI's support page ∗ Official website https://www.linkedin.com/in/ganesh-kavhar-81384075/ Additional Python Resources