forked from anniegallagher/school_schedule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
40 lines (35 loc) · 971 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
39
40
from school_schedule.student import Student
#first instance
quinn = Student(
"Quinn",
"junior",
[
"Pre-Calc",
"English III",
"World History",
"Gym",
"Chemistry",
"Music Composition"
]
)
quinn.add_class("Painting")
quinn.get_num_classes()
quinn.summary()
# second instance
claire = Student(
"Claire",
"freshmen",
[
"Algebra",
"Writing",
"Contemporary Issues",
"Gym",
"Earth Science",
"Painting"
]
)
claire.get_num_classes()
print(claire.summary())
# Extra:
# - create a function that will return the student with more classes
# - create a test for that function