<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def vectorize(values):
 """ Takes a value or list of values and returns a single result, joined by "," if necessary. """

    if isinstance(values, list):
        return ','.join(str(v) for v in values)
    return values