Ensure that the input is iterable.
There are multiple cases, when the input is:
iterable, but not a str or Mapping -> iterate over elements (e.g. [i for i in a])
str
[i for i in a]
a str -> return single element iterable (e.g. [a])
[a]
a Mapping -> return single element iterable
not iterable -> return single element iterable (e.g. [a]).
Argument to be converted to an iterable.
Iterable
Iterable version of the input value.
ensure_iterable()