You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

17 lines
646 B

#!/usr/bin/env python3
#title :9-1.py
#description :Opdracht 9.1 - Sets
#author :Marcel Haazen
#email :marcel@haazen.xyz
#date :04-11-2019 - 11:36
#version :0.1
#usage :python3 9-1.py
#notes :
#python_version :3.7.3
#==============================================================================
bruin = {"Boxtel", "Best", "Beukelaan", "Eindhoven", "Helmond 't Hout", "Helmond", "Helmond Brouwhuis", "Deurne"}
groen = {"Boxtel", "Best", "Beukelaan", "Eindhoven", "Geldrop", "Heeze", "Weert"}
print(bruin.intersection(groen))
print(bruin.difference(groen))
print(bruin.union(groen))