forked from AdaGold/school_schedule_inheritance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
38 lines (34 loc) · 1013 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from school_schedule.student import Student
from school_schedule.high_school_student import HighSchoolStudent
# first instance
quinn = Student(
"Quinn",
"junior",
[
"Pre-Calc",
"English III",
"World History",
"Gym",
"Chemistry",
"Music Composition"
]
)
quinn.add_class("Painting")
# second instance
claire = HighSchoolStudent(
"Claire",
"freshmen",
[
"Algebra",
"Writing",
"Contemporary Issues",
"Gym",
"Earth Science",
"Painting"
],
has_parking_privileges=True,
clubs=["Algorithms Club"]
)
students = [quinn, claire]
for student in students:
print(student.summary())