1

I was trying to get unique elements of a list. I found this thread that recommended using set:

But when I run this code:

lst=['foo','bar','foo']
s=set(lst)

returns this error message:

'list' object is not callable

Edit: miradulo's comment was spot on.

0 Answers0