Skip to content

SET

Description

The set operator removes duplicate values from a list. It returns a new list that preserves the order of first appearance (it does not return a Python set).

Example removing Duplicates

set([1, 1, 1])

Returns [1], since duplicate values are removed.