File tree Expand file tree Collapse file tree
.github/workflows/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818Charette
1919Christel
2020Codecademy
21+ codeimporter
2122Coghlan
2223Cormen
2324
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class Student:
8282 self .name = name
8383 self .courses = []
8484
85- def enroll (self , course ):
85+ def enrol (self , course ):
8686 self .courses.append(course)
8787 course.add_student(self )
8888
@@ -106,10 +106,10 @@ student2 = Student("Bob")
106106math_course = Course(" Mathematics" )
107107physics_course = Course(" Physics" )
108108
109- # Enrolling students in courses
110- student1.enroll (math_course)
111- student1.enroll (physics_course)
112- student2.enroll (math_course)
109+ # enrolling students in courses
110+ student1.enrol (math_course)
111+ student1.enrol (physics_course)
112+ student2.enrol (math_course)
113113
114114print (student1.display_courses())
115115print (math_course.display_students())
@@ -124,7 +124,7 @@ classDiagram
124124 class Student {
125125 +name: string
126126 +courses: list
127- +enroll (course)
127+ +enrol (course)
128128 +display_courses()
129129 }
130130 class Course {
@@ -133,7 +133,7 @@ classDiagram
133133 +add_student(student)
134134 +display_students()
135135 }
136- Student "0..* " <--> "0..* " Course : enrolls in >
136+ Student "0..* " <--> "0..* " Course : enrols in >
137137end
138138{{< /mermaid >}}
139139
You can’t perform that action at this time.
0 commit comments