def alamakota(separator, wyrazy):
    return setarator.join(wyrazy)

print(polacz('?', ['ala', 'ma', 'kota']))