- #1
Kuma
- 134
- 0
Homework Statement
I have a simple question with python.
I have a text file that's been converted into a bunch of lists like this.
[blah, blah]
[blah, blah, blah]
[a, a, d]
[g,x,d,s,a]
etc..
now i want to loop over all of these lists and append all the words into a new list, but there can't be any duplicate words allowed at all. so for example, there are 3 a's in the above text, only one is allowed in. Same goes for the blah's.
Any ideas? Thanks.
Homework Equations
The Attempt at a Solution
Tried using a for loop but it only does the first line.