bank_account = Exercise("Bank Account", "C#") capstone = Exercise("Capstone", "Javascript") snake = Exercise("Snake Game", "Python") fizz_buzz = Exercise("FizzBuzz", "Python") C37 = Cohort("Day Cohort 37") C38 = Cohort("Day Cohort 38") C40 = Cohort("Day Cohort 40") mac = Student("Mac", "Gibbons", "Mac Gibbons") me = Student("Matthew", "Kroeger", "Matthew Kroeger") coop = Student("Cooper", "Nichols", "Cooper Nichols") frog = Student("Roxanne", "Nasraty", "Roxanne Nasraty") students.extend([mac, me, coop, frog]) C37.assign_student(mac) C38.assign_student(me) C38.assign_student(coop) C40.assign_student(frog) steve = Instructor("Steve", "Brownlee", "coach", "Good Vibes") jisie = Instructor("Jisie", "David", ":crown:", "Excitement") bryan = Instructor("Bryan", "Nilsen", "Kickass High-Fiver", "High Fives") C37.assign_instructor(steve) C38.assign_instructor(jisie) C40.assign_instructor(bryan) steve.assign_exercise(mac, capstone) steve.assign_exercise(mac, bank_account) bryan.assign_exercise(frog, fizz_buzz)
geoff = Student('Geoff', 'Slater', 'mynamegeoff', 'cohort 41') mark = Student('Mark', 'Kagoan', 'markymark', 'cohort 40') shae = Student('Shae', 'Choate', 'shadeofshae', 'cohort 42') # Creating Instructors joe = Instructor('Joe', 'Shepherd', 'joe', 'dad jokes', 'cohort 40') bry = Instructor('Bryan', 'Nilsen', 'bry', 'dad jokes', 'cohort 41') madi = Instructor('Madi', 'Peper', 'madi', 'dad jokes', 'cohort 42') # Assigning Instructors to Cohorts cohort_40.assign_instructor(joe) cohort_41.assign_instructor(bry) cohort_42.assign_instructor(madi) # Assigning Students to Cohorts cohort_40.assign_student(ronnie) cohort_40.assign_student(mark) cohort_41.assign_student(geoff) cohort_42.assign_student(shae) # Instructors Assigning Exercises joe.assign_exercises(ronnie, [student_exercise, petting_zoo]) joe.assign_exercises( mark, [kandy_korner, daily_journal, petting_zoo, student_exercise]) bry.assign_exercises(geoff, [student_exercise, petting_zoo]) madi.assign_exercises(shae, [kandy_korner, daily_journal]) # Find a better way students = list() exercises = list() students.extend([ronnie, mark, geoff, shae])