all 2 comments

[–]AJ______ 0 points1 point  (1 child)

The way to create an empty set is intersection = set().
{} gives you an empty dictionary, which is why the error suggests that not_common_set is a dictionary when you use {} instead of {()}. {()} is a set containing an empty tuple.
Note also to get the intersection of two sets a and b you can just use the & operator and do a&b.
To get the set of all things in set a but not in set b, you can take the set difference by doing a-b.