cfg = [os, programming_language, degree, country]

print (', '.join(i for i in cfg))

>>> Ubuntu, Python, Linguistics, France