cfg = [os, language, degree, country] print (', '.join(i for i in cfg)) >>> Ubuntu, Python, Linguistics, France
cfg = [os, language, degree, country]
print (', '.join(i for i in cfg))
>>> Ubuntu, Python, Linguistics, France