List » length

length → number

Returns the count of items in the list.

enocolors:
- pink
- peach
python>>> list = enopy.parse(input).element('colors')
>>> list.length()
2

Return value

The number of items in the list as a number.