get all items in a list of strings in Python : I got the following code:

 import re
        
 dump_final = re.findall(r"\btext=[\w]*", dump5)

Which returns me a list. E.g: Apple, Banana, Lemon

Turns out I need to get all elements of this list and call another function using those elements.

To scan all list, I used:


        for index in range(len(dump_final)):
            dump_final[index] = dump_final[index].replace("_"," ")

But it returns me characters one by one. I need Apple. Not A, P, P, L, E

how can I get them using loop?

Thank you.