iterable_to_str#

dpeeg.utils.iterable_to_str(iterable: Iterable, symbol: str = ', ') str[source]#

Convert any iterable (e.g., list, tuple, set) into a string format.

Parameters:
  • iterable (Iterable) – The iterable to be converted into a string. It should contain elements that can be converted to strings.

  • symbol (str) – The separator to be used between elements in the resulting string. Defaults to “, “ (a comma followed by a space).