Ich habe eine Liste von Listen von Wörtern wie folgt aus:merkwürdige Verschmelzung - Liste von Wörtern
texts=[['word1', 'word2', 'word3']['word4', 'word5', 'word6']]
Meine gewünschte Ausgabe wäre:
texts=[['word1 word2 word3']['word4 word5 word6']
Das ist, was ich versucht:
für Artikel in Texten:
item=[" ".join([word for word in item])]
Aber es tut es nicht Arbeit. Warum?
Sie haben eine Liste von Listen nicht eine einfache Liste, '[[““.join (sub)] für Unter in Artikel]' –