def items_string(items_list):
    """Convert a list of Id, number pairs into a string representation.

    items_string(list((str, int))) -> str
    """
    result = []
    for itemid, num in items_list:
        result.append("{0}:{1}".format(itemid, num))
    return ','.join(result)