I'm trying to create a string on a list from a string
It looks like
#My list
list_ = ['a, b, c, d', 'f, g, h, i', 'j, k, l, m', 'n, o, p, q']
#Output that I'm looking for
['a', 'b', 'c', 'd', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q']
I got it from my code
for row in reader:
key = row[0]
pairs_dict[key] = row[1:]
getlist = pairs_list.append(f"{key}, {', '.join(pairs_dict[key])}")
#pairs_dict is dictionary and pairs_list is empty list