Python enumerate() function

The enumerate() function in Python takes a collection (e.g. a tuple) and returns it as an enumerate object.

Syntax:

Parameter

Iterable:  This parameter represents an iterable object

start:    This parameter represents a number defining the start number of the enumerate object, and by default, its value is 0

Return

This function returns an enumerate object.

Example 1

Output

 

Pin It on Pinterest

Share This