From the completed process summary:
2. Confirmed parameters and syntax for the three geoprocessing functions in the ArcMap python window
3. Created variables for shapefile inputs and outputs
4. Wrote up the calls for the three geoprocessing functions one at a time, printing the results via the GetMessages() function each time. Ran code after each function call was written.
5. Added comments as I went.
1. Added the import call and environment settings (workspace & overwrite = true)
Geoprocessing messages were directed to stdout:
The screenshot below shows the script output from running the script four times, including two times with a different name assigned as the initial string.
The process took shapefile with soil data and clipped it to encompass just the area of a small basin defined in a separate shapefile. The clipped layer was then run through the selection tool to identify poor soils via an entry in the attribute table and then the selected features of the layer were erased using the erase tool. The result is the layer depicted below.