I have some code which tots up a set of selected values. I would like to define an empty set and add to it, but {} keeps turning into a dictionary. I have foun
{}
You can just construct a set:
>>> s = set()
will do the job.