示例#1
0
from cohort import Cohort
from exercise import Exercise
from instructor import Instructor
from student import Student

# Create 4, or more, exercises.
chicken_monkey = Exercise()
chicken_monkey.exercise_name = "Chicken Monkey"
chicken_monkey.exercise_language = "Python"

pizza_joint = Exercise()
pizza_joint.name = "Pizza Joint"
pizza_joint.exercise_language = "Python"

planner = Exercise()
planner.name = "Planner"
planner.exercise_language = "Python"

english_idioms = Exercise()
english_idioms.name = "English Idioms"
english_idioms.exercise_language = "Python"

multiple_inheritances = Exercise()
multiple_inheritances.name = "Multiple Inheritances"
multiple_inheritances.exercise_language = "Python"

# Create 3, or more, cohorts.

cohort_35 = Cohort()
cohort_35.name = "Cohort 35"
cohort_35.cohort_students = list()
示例#2
0
def build_exercise_sample():
    exercise1 = Exercise()
    exercise1.name = 'squats'
    return exercise1