Hi,
Please explain the following line from ArcGIS documentation for python. It looks different from regular for loop which ends with colon.
values = [row[0] for row in arcpy.da.SearchCursor(fc, (field))]
it is a 'list comprehensions'
List comprehensions 3 ... and there are two others.
official docs in all python versions
5. Data Structures — Python 3.4.4 documentation
Thanks for the help
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.