Creating an empty set
You can just construct a set:
>>> s = set()
will do the job.
The "proper" way to do it:
myset = set()
The {...}
notation cannot be used to initialize an empty set
You can just construct a set:
>>> s = set()
will do the job.
The "proper" way to do it:
myset = set()
The {...}
notation cannot be used to initialize an empty set