Data Modelling Using Python Dictionaries And Sets