I have a list like ;
list1 = ['ex1_a','ex2_b','ex3_b']
I want to split it like this to the new list ;
newlist = ['ex1 a', 'ex2 b', 'ex3 b']
I try to do it like this but it didn't work. How can I do this?
for x in list1:
newlist = " ".join(x.split("_"))