<filename>demos/w5/lectureset.py
#Initialise an empty set
colours = set()
#initialise non-emty set
colors = {"blue", "red", "yellow"}

#Adding elements to a set
colors.add("purple")
colours.add("red")
colours.add("black")
colours.add("green")

print(colours)
print(colors)

#Union - joining two sets
set1 = colours.union(colors)
print(set1)

#Intersection - finding common elements
set2 = colours.intersection(colors)
print(set2)

