c38 = Cohort("Day Cohort 38") zach = Student("Zach", "Nicholson", "@zachattack") ronnie = Student("Ronnie", "Lankford", "@m0t0cr0ssg0d") kaleb = Student("Kaleb", "Moran", "@ssbmDWAIN") tanner = Student("Tanner", "Brainard", "@bigBRAINbigBUCKS") joe = Instructor("Joe", "Shepherd", "@morningjoe", "Infinite patience") bryan = Instructor("Bryan", "Nielsen", "@fathercomedy", "Dad jokes") sage = Instructor("Sage", "Klein", "@fallensoldierRIP", "Humor & Figma?") c40.addStudents(zach, kaleb) c38.addStudents(ronnie, tanner) c19.addStudents(zach, ronnie, kaleb, tanner) c40.addInstructors(joe, bryan, sage) c38.addInstructors(joe, bryan) c19.addInstructors(sage) joe.assignExercise(zach, car_dealership) bryan.assignExercise(kaleb, car_dealership) sage.assignExercise(ronnie, frontend_capstone) joe.assignExercise(tanner, nutshell) joe.assignExercise(ronnie, nutshell) joe.assignExercise(kaleb, nutshell) bryan.assignExercise(tanner, daily_journal) sage.assignExercise(tanner, frontend_capstone) sage.assignExercise(ronnie, daily_journal) print(zach, kaleb, ronnie, tanner) print(c40, c38, c19)
for student in cohort_forty_one.students: print(student.first_name) cohort_thirty_eight.addStudents(tim) for student in cohort_thirty_eight.students: print(student.first_name) cohort_thirty_nine.addStudents(seymore) for student in cohort_thirty_nine.students: print(student.first_name) betty = Instructor("Betty", "Boop", "boopity", "karate") terry = Instructor("Tare", "Ible", "taretare", "juggling") vert = Instructor("Vert", "Eckle", "verte", "magic") cohort_thirty_nine.addInstructors(betty) for instructor in cohort_thirty_nine.instructors: print(instructor.first_name) cohort_forty.addInstructors(terry) for instructor in cohort_forty.instructors: print(instructor.first_name) cohort_forty_one.addInstructors(vert) for instructor in cohort_forty_one.instructors: print(instructor.first_name) betty.assign_exercise(jessie, classes_ex) betty.assign_exercise(tim, dicts_ex) terry.assign_exercise(sam, lists_ex) terry.assign_exercise(seymore, tuples_ex)