Help with script I wrote that is only partially working

Discussion created by merebears on Oct 3, 2012
Latest reply on Oct 3, 2012 by Hornbydd
I am trying to learn some basic script writing for arcgis and started with writing a basic script that selects features and exports them to a folder, then clips features to the new exported shapefiles.  However, the script seems to select and export the new shapefiles
correctly but does not clip.  I wanted to see if anyone with more experience can take a look at the script and pinpoint the errors I
have made so I can correct it?  Script should be attached below.

Thank You