Sets
Sets
Unindexed
Set items cannot be referred to by index
or key.
E.g. thisset [0]
len() function
Returns no of items a set has
Set () Constructor
Used to also create a set from a list.
.copy() Method
Copies a set to another variable
e.g. Copy the fruits set:
.issubset () Method
Returns True if all items in set x are a
subset of set y:
.issuperset() Method
Returns True if x is a superset of y,
i.e. all items in set y are contained in
set x: