[portland] Two Indices, One For Loop?
Rich Shepard
rshepard at appl-ecosys.com
Tue Apr 22 00:09:50 CEST 2008
On Mon, 21 Apr 2008, Kirk McDonald wrote:
> Why just use nested for loops?
>
> for item in itemList:
> for i in range(len(labelList)):
> write(labelList[i])
> write(item[i])
That works. I thought there might be a more direct way.
Thanks, Kirk,
Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the Portland
mailing list