(item)
Converts an item or iterable into an iterable.
Converts an item or iterable into an iterable.
Converts an item or iterable into an iterable .
def to_iterable(item):
  """Converts an item or iterable into an iterable."""
  if isinstance(item, str):
    return [item]
  elif isinstance(item, collections.abc.Iterable):
    return item
  else:
    return [item]
def to_iterable ( item ) : if isinstance ( item , str ) : return [ item ] elif isinstance ( item , collections . abc . Iterable ) : return item else : return [ item ]