Python‎ > ‎Built-in‎ > ‎

enumerate()

http://www.adilwaseem.com/

Introduction
The built in function counts the sequence.

Syntax
enumerate(sequence, number)

Parameters
sequences, and number

Example
 >>> x=[223,444,332,222,332,112]
>>> list(enumerate(x))
[(0, 223), (1, 444), (2, 332), (3, 222), (4, 332), (5, 112)]
>>> 

Comments