def is_iterable(val):
return isinstance(val, collections.Iterable)<EOL>
Checks whether a variable is iterable.

Parameters
----------
val
    The variable to check.

Returns
-------
bool
    True if the variable is an iterable. Otherwise False.