How to create an empty set?
set()
What will {} create?
An empty dictionary
How to check a value is in a set?
x in set
How to get unique characters in a string?
set(‘adsbdash’)
will return a set of unique chars
a -b
letters in a but not in b
a | b
letters in a or b
a ^ b
a or b but not in both
a & b
a and b
set comprehension
{x for x ‘abdgcj’ if not in ‘jih’ }