Python set() built-in function

From the Python 3 documentation

Return a new set object, optionally with elements taken from iterable. set is a built-in class. See set and Set Types — set, frozenset for documentation about this class.

Examples

>>> s = set()
>>> s
# set()
>>> type(s)
# <class 'set'>

Ups! Nothing here yet!

This is a great opportunity for you to collaborate! Hit the link at the end of this page and add some examples and a brief description. If you don't know where to start, the Python 3 documentation will lead you in the right direction.

Subscribe to pythoncheatsheet.org

A bullshit free publication, full of interesting, relevant links.