-
Notifications
You must be signed in to change notification settings - Fork 207
/
main.py
40 lines (34 loc) · 953 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
#first instance
quinn = Student(
"Quinn", # Name
"junior", # Grade
[ # classes
"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()
claire.summary()
# Extra:
# - create a function that will return the student with more classes
# - create a test for that function