is this pythonic?

Caleb Hattingh caleb1 at telkomsa.net
Wed Jul 20 16:13:25 EDT 2005


Wow, I didn't know about enumerate.

Many thanks
Caleb

On Wed, 20 Jul 2005 15:19:50 +0200, Simon Brunning  
<simon.brunning at gmail.com> wrote:

> On 7/20/05, Mage <mage at mage.hu> wrote:
>> Or is there better way?
>>
>> for (i, url) in [(i,links[i]) for i in range(len(links))]:
>
> for i, url in enumerate(links):
>




More information about the Python-list mailing list