exercise1 = Exercise("exercise1", "javascript") exercise2 = Exercise("exercise2", "python") exercise3 = Exercise("exercise3", "html") exercise4 = Exercise("exercise4", "css") cohort1 = Cohort("cohort1") cohort2 = Cohort("cohort2") cohort3 = Cohort("cohort3") student1 = Student("John", "Doe") student1.cohort = cohort1 student2 = Student("Jane", "Doe") student2.cohort = cohort2 student3 = Student("Jill", "Doe") student3.cohort = cohort3 instructor1 = Instructor("Doe", "John") instructor1.cohort = cohort1 instructor2 = Instructor("Doe", "Jane") instructor2.cohort = cohort2 instructor3 = Instructor("Doe", "Jill") instructor3.cohort = cohort3 instructor1.assign_exercise_to_student(student1, exercise1) instructor1.assign_exercise_to_student(student1, exercise2) instructor1.assign_exercise_to_student(student2, exercise3) instructor1.assign_exercise_to_student(student2, exercise4) instructor2.assign_exercise_to_student(student1, exercise1) instructor2.assign_exercise_to_student(student1, exercise2) instructor2.assign_exercise_to_student(student3, exercise3) instructor2.assign_exercise_to_student(student3, exercise4) instructor3.assign_exercise_to_student(student2, exercise1) instructor3.assign_exercise_to_student(student2, exercise2)
siri = Student("Siri", "Robot", "heysiri") alexa = Student("Alexa", "Hola", "heyalexa") me.cohort = "cohort_44" you.cohort = "cohort_113" siri.cohort = "cohort_44" alexa.cohort = "cohort_103" # Create 3 or more instructors and assign them to a cohort lupin = Instructor("Romulus", "Lupin", "howlsatthemoon", "always there if you need chocolate") snape = Instructor("Severus", "Snape", "snivellus", "looking gloomy") lockhart = Instructor("Gilderoy", "Lockhart", "sexyandiknowit", "always looking fresh") lupin.cohort = "cohort_44" snape.cohort = "cohort_113" lockhart.cohort = "cohort_103" # Have each instructor assign 2 exercises to each of the students lupin.assign_exercise(me, methods_review) lupin.assign_exercise(me, classes_practice) lupin.assign_exercise(you, methods_review) lupin.assign_exercise(you, classes_practice) lupin.assign_exercise(siri, methods_review) lupin.assign_exercise(siri, classes_practice) lupin.assign_exercise(alexa, methods_review) lupin.assign_exercise(alexa, classes_practice) snape.assign_exercise(me, face_space)
trey = Student() trey.first_name = "Trey" trey.last_name = "Suiter" trey.slack_handle = "@treys" trey.cohort = cohort_36 willy = Student() willy.first_name = "Willy" willy.last_name = "Metcalf" willy.slack_handle = "@willym" willy.cohort = cohort_37 steve = Instructor("dad jokes") steve.first_name = "Steve" steve.last_name = "Brownlee" steve.slack_handle = "@coach" steve.cohort = cohort_37 adam = Instructor("disgressing") adam.first_name = "Adam" adam.last_name = "Sheaffer" adam.slack_handle = "@adams" adam.cohort = cohort_39 mo = Instructor("interpretive dance") mo.first_name = "Mo" mo.last_name = "Silvera" mo.slack_handle = "@momoney" mo.cohort = cohort_36 steve.assign_exercise(holden, martins_aquarium) steve.assign_exercise(holden, kennels) steve.assign_exercise(willy, martins_aquarium) steve.assign_exercise(willy, kennels)
alyssa_nycum.cohort = cohort_38.name cohort_38.students.append(katie_wohl) katie_wohl.cohort = cohort_38.name cohort_37.students.append(onterio_wright) onterio_wright.cohort = cohort_37.name cohort_36.students.append(john_long) john_long.cohort = cohort_36.name # Create 3, or more, instructors and assign them to one of the cohorts. bryan_neilson = Instructor("Bryan", "Neilson", "bryanneilson", "dad jokes") kristen_norris = Instructor("Kristen", "Norris", "kristennorris", "to-the-point responses") andy_collins = Instructor("Andy", "Collins", "andycollins", "dry humor") cohort_36.instructors.append(andy_collins) andy_collins.cohort = cohort_36.name cohort_37.instructors.append(bryan_neilson) bryan_neilson.cohort = cohort_37.name cohort_38.instructors.append(kristen_norris) kristen_norris.cohort = cohort_38.name # Have each instructor assign 2 exercises to each of the students. kristen_norris.assign_exercise(python_dictionaries, alyssa_nycum) kristen_norris.assign_exercise(python_lists, alyssa_nycum) kristen_norris.assign_exercise(python_sets, alyssa_nycum) kristen_norris.assign_exercise(python_sets, katie_wohl) kristen_norris.assign_exercise(python_tuples, katie_wohl) bryan_neilson.assign_exercise(python_dictionaries, onterio_wright) bryan_neilson.assign_exercise(python_lists, onterio_wright) andy_collins.assign_exercise(python_sets, john_long)
cohort_38.students.append(cody) cody.cohort = cohort_38.name cohort_38.students.append(dustin) dustin.cohort = cohort_38.name cohort_39.students.append(bob) bob.cohort = cohort_39.name cohort_40.students.append(dora) dora.cohort = cohort_40.name andy = Instructor("Andy", "Collins", "AndyCollins", "all-knowing") bryan = Instructor("Bryan", "Neilson", "BryanNeilson", "high fives") kristen = Instructor("Kristen", "Norris", "KristenNorris", "to the point answers") cohort_38.instructors.append(kristen) kristen.cohort = cohort_38.name cohort_39.instructors.append(andy) andy.cohort = cohort_39.name cohort_40.instructors.append(bryan) bryan.cohort = cohort_40.name andy.assign_exercise(lists, bob) andy.assign_exercise(tuples, bob) bryan.assign_exercise(lists, dora) bryan.assign_exercise(tuples, dora) kristen.assign_exercise(dictionaries, cody) kristen.assign_exercise(sets, dustin) students = [cody, dustin, bob, dora] exercises = [lists, dictionaries, tuples, sets]