(caption, choices)
return "{} {}.".format(
        caption, ", ".join(["{}:{}".format(i + 1, val) for i, val in enumerate(choices)]))
A function to convert a select item to text in a compact format.
    Format is:

    [question] 1:[choice1], 2:[choice2]...
A function to convert a select item to text in a compact format.
    Format is:
A function to convert a select item to text in a compact format . Format is :
def select_to_text_compact(caption, choices):
    """
    A function to convert a select item to text in a compact format.
    Format is:

    [question] 1:[choice1], 2:[choice2]...
    """
    return "{} {}.".format(
        caption, ", ".join(["{}:{}".format(i + 1, val) for i, val in enumerate(choices)]))
def select_to_text_compact ( caption , choices ) : return "{} {}." . format ( caption , ", " . join ( [ "{}:{}" . format ( i + 1 , val ) for i , val in enumerate ( choices ) ] ) )