Learn about python sets

Learn about python sets
0.0 0

#1

TODO: set basic info

Mutable

Creation:

set literal:

Curly brackets, {}, can’t be used to create an empty set:

>>> not_set = {}     # set constructor must be used to make empty sets.
>>> type(not_set)    # Empty curly brackets create empty dictionaries.
<class 'dict'>

set constructor


#2