def makeList(separator):
    counter = 1

    def makeItem(item):
        nonlocal counter
        result = str(counter) + separator + item + 
        counter += 1
        return result

    return makeItem() + makeItem() + makeItem()

print(makeList())