monkey_chicken = Exercise("MonkeyChicken", "Python") welcome_to_nashville = Exercise("Welcome to Nashville", "JavaScript") celebrity_tribute = Exercise("Celebrity Tribute", "HTML") nutshell = Exercise("Nutshell", "ReactJS") day_cohort_36 = Cohort("Day Cohort 36") day_cohort_45 = Cohort("Day Cohort 45") night_cohort_15 = Cohort("Evening Cohort 15") christian = Student("Christian", "Pippin", "@cpippin98") lauren = Student("Lauren", "Riddle", "@lriddle19") corri = Student("Corri", "Golden", "@cgolden17") matt = Student("Matt", "Blagg", "@mblagg45") chase = Student("Chase", "Fite", "@cfite76") day_cohort_36.add_student(christian) night_cohort_15.add_student(lauren) day_cohort_45.add_student(corri) day_cohort_36.add_student(matt) night_cohort_15.add_student(chase) joe = Instructor("Joe", "Shepherd", "@jshepherd24", "Python") jisie = Instructor("Jisie", "David", "@jdavid36", "JavaScript") jenna = Instructor("Jenna", "Solis", "@jsolis09", "CSharp") day_cohort_36.add_instructor(joe) night_cohort_15.add_instructor(jisie) day_cohort_45.add_instructor(jenna) joe.assign_exercise(christian, monkey_chicken)
Jim = Student('Jim', 'Bloom', 'JimBloom') John = Student('John', 'Johner', 'Johnnnyyy') Janger = Student('Jang', 'Er', 'JangerMan') James = Student('James', 'Smith', 'Fauhs') cohort32.add_student(Jim) cohort33.add_student(John) cohort9.add_student(Janger) cohort33.add_student(James) Sally = Instructor('Sally', 'Flemming', 'SalFlem', 'Farting') Larry = Instructor('Larry', 'Yrral', 'Larrrr', 'Fencing') Lu = Instructor('Lu', 'LJ', 'Plre', 'Swimming') cohort32.add_instructor(Sally) cohort33.add_instructor(Larry) cohort9.add_instructor(Lu) Sally.assign_exercise(exercise1, Jim) Sally.assign_exercise(exercise2, John) Larry.assign_exercise(exercise3, Janger) Larry.assign_exercise(exercise4, James) Lu.assign_exercise(exercise1, James) Lu.assign_exercise(exercise2, Janger) Lu.assign_exercise(exercise3, John) Larry.assign_exercise(exercise4, Jim) students = list() students.append(Jim) students.append(John)
ryan3 = Student("Ryan", "Crawley", "rc2") sullivan = Student("Sully", "Pierce", "sp1") #assign students cohort36.add_student(ryan1) cohort36.add_student(ryan2) cohort36.add_student(ryan3) cohort36.add_student(sullivan) #create instructors joe = Instructor("Joe", "Shepherd", "js1", "funny") jisie = Instructor("Jisie", "David", "jd1", "good at instructing") jenna = Instructor("Jenna", "not sure", "jn1", "teaching") #assign instructors cohort36.add_instructor(joe) cohort36.add_instructor(jisie) cohort36.add_instructor(jenna) #assign exercises joe.assign_exercise(ryan1, exercise1) joe.assign_exercise(ryan1, exercise2) jisie.assign_exercise(ryan2, exercise2) jisie.assign_exercise(ryan2, exercise3) jenna.assign_exercise(sullivan, exercise3) jenna.assign_exercise(sullivan, exercise4) joe.assign_exercise(ryan3, exercise1) joe.assign_exercise(ryan3, exercise2) print(ryan1.cohort)
C36 = Cohort("C36") E9 = Cohort("E9") C37 = Cohort("C37") # creating students John = Student("John", "Long", "John Long", C36.name) Holden = Student("Holden", "Parker", "Holden Parker", C37.name) Anonymous = Student("Mister", "Anonymous", "This Anon Works", E9.name) Jeremiah = Student("Jeremiah", "Bell", "Jeremiah Bell", C36.name) #creating instructors Joe = Instructor("Joe", "Shepherd", "Joe Shepherd", "Making Python Fun!", C36.name) Brenda = Instructor("Brenda", "Long", "Brenda Long", "Dancing to funny videos", E9.name) Steve = Instructor("Steve", "Brownlee", "Steve Brownlee", "Blogging", C37.name) C36.add_instructor(Joe) C37.add_instructor(Steve) E9.add_instructor(Brenda) C36.add_student(John) C36.add_student(Jeremiah) C37.add_student(Holden) E9.add_student(Anonymous) E9.show_students() C36.show_students() Joe.assign_exercise(C36, kennel) Joe.assign_exercise(C36, journal) Brenda.assign_exercise(E9, cash_coins) Brenda.assign_exercise(E9, kennel) Steve.assign_exercise(C37, nutshell)
ex6 = Exercise("ChickenMonkey", "Telepathy") cohort97 = Cohort(97) cohort98 = Cohort(98) cohort99 = Cohort(99) student1 = Student("Guy", "Cherkesky", "@cherkesky", 97) student2 = Student("Bill", "Gates", "@billyboy", 97) student3 = Student("Brian", "Chesky", "@bnb_brian", 98) student4 = Student("Steve", "Balmer", "@whoopie", 99) inst1 = Instructor("Joe", "Sheperd", "@joe", "Jokes") inst2 = Instructor("John", "Lemon", "@lemon", "AI") inst3 = Instructor("Tracy", "Salt", "@salt", "Cakes") cohort97.add_instructor(inst1) cohort98.add_instructor(inst2) cohort99.add_instructor(inst3) inst1.assign_exercise_to_student(student1, ex1) inst1.assign_exercise_to_student(student1, ex2) inst2.assign_exercise_to_student(student1, ex3) inst2.assign_exercise_to_student(student1, ex4) inst3.assign_exercise_to_student(student1, ex5) inst3.assign_exercise_to_student(student1, ex6) inst1.assign_exercise_to_student(student2, ex1) inst1.assign_exercise_to_student(student2, ex2) inst2.assign_exercise_to_student(student2, ex3) inst2.assign_exercise_to_student(student2, ex4) inst3.assign_exercise_to_student(student2, ex5)