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.
Looking at your code you select out a county then use that single county to clip a layer called trex_clip? Looks fine to me. Although I would put an "r" infront of your text where you declare the workspace. So your line of code should look like this: