Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: enumerate example (http://www.velocityreviews.com/forums/t319230-re-enumerate-example.html)

Andreas Jung 07-04-2003 08:30 AM

Re: enumerate example
 
for num ,item in enumerate( ['a','b','c']):
print num, item

0 a
1 b
2 c

--On Freitag, 4. Juli 2003 18:19 Uhr +1100 Egor Bolonev <ebolonev@rol.ru>
wrote:

> Hello, All!
>
> Any useful example for enumerate, please.
>
> With best regards, Egor Bolonev. E-mail: ebolonev@rol.ru [ru eo en]
>
> --
> http://mail.python.org/mailman/listinfo/python-list







Egor Bolonev 07-04-2003 09:19 AM

Re: enumerate example
 
Hello, Andreas!
You wrote on Fri, 04 Jul 2003 10:30:56 +0200:

Thanks!

AJ> 0 a
AJ> 1 b
AJ> 2 c

AJ> --On Freitag, 4. Juli 2003 18:19 Uhr +1100 Egor Bolonev
AJ> <ebolonev@rol.ru> wrote:

??>> Hello, All!
??>>
??>> Any useful example for enumerate, please.
??>>
??>> With best regards, Egor Bolonev. E-mail: ebolonev@rol.ru [ru eo en]
??>>
??>> --
??>> http://mail.python.org/mailman/listinfo/python-list


With best regards, Egor Bolonev. E-mail: ebolonev@rol.ru [ru eo en]



All times are GMT. The time now is 08:33 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.