Hello. I'm learning how to use this. I have a function called split_sentences that returns a list of strings. I did
text2=[]
for line in text:
lines=split_sentences(line)
text2 += lines
as a result I got a list of strings. But if I do
text2=[]
text2 += list(map(split_sentences,text))
my result is a list of lists containing the strings
Why? and how to get a result like in the first example.