ScottChang25

ArcGIS 10: Doing Python to check for numbers of files in a directory-1 syntax error

Discussion created by ScottChang25 on Aug 17, 2012
Latest reply on Aug 17, 2012 by clthompson
Hi all,
I am using the following tutorial materials to pick up the Python programming:

(i)                  Python Programming for ArcGIS by David Quinn & Daniel Sheehan (dated: January 27, 2011)

(ii)                Python �?? Check for number of shapefiles in a directory in http://gis.stackexchange.com/questions/30059

I tried the ArcPy code (see the attached file) in my ArcMap 10 and I got a syntax error. I think I need an additional ) before or after the []. I did it by adding an additional ) before or after the [], but I still got the same error either way. I don�??t know what mistake I made and how to resolve it.  Please kindly help and advise.

Thanks,
Scott Chang

P. S.  Is it possible to paste the set of whole ArcPY code statements on the page of the thread I post?  If possible, please tell me how to paste the set of whole ArcPY code statements on the page of the thread I post.

Outcomes