AnsweredAssumed Answered

How to use name an output using a variable from a list

Question asked by ziegenf2 on Apr 21, 2016
Latest reply on Apr 22, 2016 by Dan_Patterson

Hi All,

 

I am trying to use a for loop in arcpy, but am unsure of how to name the output using the variables from the list. I have attached a snippet of the code. Please let me know of any ideas. The list are all variables that are set to shapefiles. Please let me know if you have any ideas. Thanks!

 

#for loop
x=[ECO, HPA, POT, NAV, OPA]

for i in x:
    arcpy.Clip_analysis(i, "Pipeline_Buffer", i + "Areas")

Outcomes