Example #1
0
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)
Example #2
0
cohort_36.cohort_students = list()
cohort_36.cohort_teachers = list()

cohort_37 = Cohort()
cohort_37.name = "Cohort 37"
cohort_37.cohort_students = list()
cohort_37.cohort_teachers = list()

# Create 4, or more, students and assign them to one of the cohorts.

bill = Student("Bill", "Smith", "billSmith", "36")
bill.first_name = "Bill"
bill.last_name = "Smith"
bill.slack_handle = "billSmith"
bill.student_cohort = "36"
cohort_36.add_student(bill)

manila = Student("Manila", "Bui", "manilaBui", "35")
manila.first_name = "Manila"
manila.last_name = "Bui"
manila.slack_handle = "manilaBui"
manila.student_cohort = "35"
cohort_35.add_student(manila)

chase = Student("Chase", "Fite", "chaseFite", "35")
chase.first_name = "Chase"
chase.last_name = "Fite"
chase.slack_handle = "chaseFite"
chase.student_cohort = "35"
cohort_36.add_student(chase)
Example #3
0
jane = Person()
people.append(jane)
john = Student('John Doe', 20, 'male', 'BME')
people.append(john)
student = Student()
people.append(student)
gandhi = Mentor('Gandhi', 148, 'male', 'senior')
people.append(gandhi)
mentor = Mentor()
people.append(mentor)
sponsor = Sponsor()
elon = Sponsor('Elon Musk', 46, 'male', 'SpaceX')
people.append(elon)
student.skip_days(3)

for i in range(5):
    elon.hire()

for i in range(3):
    sponsor.hire()

for person in people:
    person.introduce()
    person.get_goal()

awesome = Cohort('AWESOME')
awesome.add_student(student)
awesome.add_student(john)
awesome.add_mentor(mentor)
awesome.add_mentor(gandhi)
awesome.info()
Example #4
0
exercise1 = Exercise('Hello World JS', 'Javascript')
exercise2 = Exercise('Hello World RoR', 'Ruby on Rails')
exercise3 = Exercise('Hello World C', 'C#')
exercise4 = Exercise('Hello World J', 'Java')

cohort32 = Cohort('Day 32')
cohort9 = Cohort('Evening 9')
cohort33 = Cohort('Day 33')

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)
Example #5
0
# 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)
Steve.assign_exercise(C37, journal)

John.student_info()
Jeremiah.student_info()
exercise3 = Exercise("make something", "python")
exercise4 = Exercise("make anything", "python")

#create cohorts
cohort36 = Cohort("Cohort 36")
cohort35 = Cohort("Cohort 35")
cohort37 = Cohort("Cohort 37")

#create students
ryan1 = Student("Ryan", "Cunningham", "rc1")
ryan2 = Student("Ryan", "Bishop", "rb1")
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