I have a file GDB that contains Annotation and Polygon feature classes. I would like to create a list of strings with the first part of the name of the polygon features. For example in the data below I would like to create a list that would appear like the following -
I have used ListFeatureClasses in order to get a list of all the polygon classes, but I'm a lot a loss of what the next step is, - a LEN() style function to move the last 6 characters?
lookfor =  for dataset in arcpy.ListDatasets(): for fc in arcpy.ListFeatureClasses("*", "Polygon", dataset): lookfor.append(fc) for fc in arcpy.ListFeatureClasses("*", "Polygon"): lookfor.append(fc)
I currently have this list hard coded in another script and would like to make it more dynamic so I don't have to worry about data changes etc.