classes can built from other smaller classes,allowing can bebe built from other smaller classesallowing us to classes model of the type "has ( us to relationships model reladonships of " he has type " ( department studentsdepartment has shas tudentsclass departmentdef __init__self )self students [class studentdef __init__self,last,first )self lastname last self firstname first def enrollselfstudent )self students append(studentcompsci department(compsci enrollstudent"smith""johncompsci enrollstudent"murphy""alicefor in compsci studentsprint "% % ( firstname, lastnamejohn smith create student instances and add to department instance