Example #1
0
nutshell = Exercise("Nutshell", "Javascript")

c40 = Cohort("Day Cohort 40")
c19 = Cohort("Evening Cohort 19")
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)
Example #2
0
classes_ex = Exercise("Classes", "Python")
dicts_ex = Exercise("Dictionaries", "Python")
lists_ex = Exercise("Lists", "Python")
tuples_ex = Exercise("Tuples", "Python")

cohort_forty = Cohort("Cohort 40")
cohort_thirty_nine = Cohort("Cohort 39")
cohort_thirty_eight = Cohort("Cohort 38")
cohort_forty_one = Cohort("Cohort 41")

jessie = Student("Jessie", "Mess", "messiejessie")
sam = Student("Sam", "Alama", "samalama")
tim = Student("Tim", "Tam", "timtam")
seymore = Student("Seymore", "Butts", "seybutts")

cohort_forty.addStudents(jessie)
for student in cohort_forty.students:
    print(student.first_name)

cohort_forty_one.addStudents(sam)
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)