Skip to main content

length

Return the length of the value - useful for lists.

def length(
value: any
) - > integer

Return the length of the value - useful for lists.

Parameters

NameTypeDescription
valueanyThe object whose length is to be measured, typically a list, string, or other collection

Returns

TypeDescription
integerThe number of items in the value, or 0 if the value does not support the len() function