Now you will begin writing the script that you need to accomplish the tasks you performed manually before. To start, you will insert some basic information concerning your script in accordance with best practices. Then, you will import the ArcPy module, and lastly, you will write the code for the script:
- First, you will save your empty script, so that it has a name. In the Untitled window, click on the File | Save option.
- In the Save As window, navigate to C:\Student\IntroArcPro\Chapter12, name your file AcresWebProject.py, and click Save.
You have just saved your empty script. You should see the new name and path shown at the top of the code window.
- Now you will add the general information at the beginning of the script as comments. Remember that # identifies a comment within Python code. Type the following example code into the IDLE code window (the Purpose part should all be...