[] = empty list

() = empty tuple

{} = empty dict

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

7 s
7

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

Leave a Reply

Your email address will not be published. Required fields are marked *