Are y'all speaking English?
Announcement
Collapse
No announcement yet.
Anyone here know Python Script
Collapse
X
-
Just to make good on my statement above:
Code:PNTID_Collection = [1,2,3,4] Grass_Collection = [] for PNTID in PNTID_Collection: PointID = "GE_Grass_" + str(PNTID) Grass_Collection.append(PointID) print Grass_Collection
And just because, you can do the same thing in ruby:
Code:puts [1,2,3,4].map {|i| "GE_Grass_#{i}"}
Last edited by Loneaggie; 05-30-2014, 03:42 PM.
Comment
Comment