colour.utilities.is_iterable

colour.utilities.is_iterable(a: Any) bool[source]

Return whether given variable \(a\) is iterable.

Parameters

a (Any) – Variable \(a\) to check the iterability.

Returns

Whether variable \(a\) is iterable.

Return type

bool

Examples

>>> is_iterable([1, 2, 3])
True
>>> is_iterable(1)
False