S
Shi Mu
I used the following method to remove duplicate items in a list and
got confused by the error.
File "<interactive input>", line 1, in ?
TypeError: iterable argument required
got confused by the error.
Traceback (most recent call last):a [[1, 2], [1, 2], [2, 3]]
noDups=[ u for u in a if u not in locals()['_[1]'] ]
File "<interactive input>", line 1, in ?
TypeError: iterable argument required