waltlabtools.nonnumeric.isiterable

isiterable(data)[source]

Determines whether an object is iterable.

Here, an object is iterable if it has a nonzero length and is not a string.

Parameters

data (any)

Returns

iterable (bool) -- Returns True if data is not a string and has a length that is greater than zero.