SET
Last updated
Was this helpful?
Last updated
Was this helpful?
The set
operator converts a list to a set (in the Python sense).
Returns [1]
since a set cannot contain duplicates
will evaluate much faster than directly doing in
on the list, since a set can check if something is part of it in O(1) (see )