Empty set literal?

Johan Råde picture Johan Råde · May 25, 2011 · Viewed 215.9k times · Source

[] = empty list

() = empty tuple

{} = empty dict

Is there a similar notation for an empty set? Or do I have to write set()?

Answer

sepp2k picture sepp2k · May 25, 2011

No, there's no literal syntax for the empty set. You have to write set().