(choices)
return ", ".join(choices_to_list(choices))
Helper function that transforms choices dict to a printable string.

    :param dict choices: The dict containing available choices.
    :rtype: str

    >>> choices_to_string({0: 0, 1: 1, 2: 2, "foo": 2})
    'foo, 0, 1, 2'
Helper function that transforms choices dict to a printable string.
Helper function that transforms choices dict to a printable string .
def choices_to_string(choices):
    """Helper function that transforms choices dict to a printable string.

    :param dict choices: The dict containing available choices.
    :rtype: str

    >>> choices_to_string({0: 0, 1: 1, 2: 2, "foo": 2})
    'foo, 0, 1, 2'
    """
    return ", ".join(choices_to_list(choices))
def choices_to_string ( choices ) : return ", " . join ( choices_to_list ( choices ) )