enumerate() Function

Returns a list of integer numbers from 0 through n-1.

Syntax

enumerate( n )

n: (Integer) The number of integer numbers to return.`

Returns

Integer Array

Notes

The resulting enumerated list begins with zero.

To start the list at 1, add +1 onto the syntax as follows: enumerate(*n*)+1

Examples

You can experiment with this function in the test box below.

Test Input

enumerate(10) returns 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

FEEDBACK