Possible one-liner alternative implementation : `locales = list(chain(*[l.split(',') for l in locale]))` (chain from itertools)