[Tutor] How to easily recover the current index when using Python-style for loops?

Alan Gauld alan.gauld at btinternet.com
Thu Feb 5 22:54:42 CET 2015


On 05/02/15 18:37, Timo wrote:
> Op 05-02-15 om 18:48 schreef Alan Gauld:
>>
>> try:
>>
>> >>> help( enumerate() )

> Should be
>
>  >>> help(enumerate)

True, good catch!


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list