def transform_collection_to_sentence(collection: Collection[Text]) -> Text:
    "Transforms e.g. a list like ['A', 'B', 'C'] into a sentence 'A, B and C'."
    x = list(collection)
    if (len(x) >= 2):
        return ((', '.join(map(str, x[:(- 1)])) + ' and ') + x[(- 1)])
    return ''.join(collection)
Transforms e.g. a list like ['A', 'B', 'C'] into a sentence 'A, B and C'.
def transform_collection_to_sentence(collection: Collection[Text]) -> Text:
    
    x = list(collection)
    if (len(x) >= 2):
        return ((', '.join(map(str, x[:(- 1)])) + ' and ') + x[(- 1)])
    return .join(collection)