Just wondering how I would not have the replace method applied to a specific item in a list (but to the rest). In this example, how I would not apply it to the 3rd item (the 'c' string)?
ls_c = ['a', 'b', 'c', 'd', 'e', 'f']
ls_c_a = (','.join(ls_c))
ls_c_a_1 = ls_c_a.replace(',', '\n')
print('test' + ls_c_a_1)
So the output would look like:
testa
bc
d
e
f
Thanks in advance.