Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
*x, s = map(str, a)
if x: s = ', '.join(x) + f' and {s}'
def f(a, sep=', ', con=' or '):
*x, s = map(str, a)
return sep.join(x) + con + s