AnsweredAssumed Answered

Trying to create a list of strings from rows

Question asked by kpearson272 on May 21, 2013
Latest reply on May 21, 2013 by kpearson272
I'm trying to create a list of strings from the rows in a table, but I'm only getting the first letter of each string and not the string. 

import arcpy  arcpy.env.workspace = "C:/Data_new/Temp/Default.gdb"  cursor = arcpy.SearchCursor("parcels_sel")  for row in cursor:     testVal = row.getValue("Name1")     print testVal[0]  del testVal     del row


this returns the first letter of each name(L, K, P, etc).  How do I get a list of the names(Leonard, Koontz, Perrell, etc)?

Outcomes