-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGradeBook
More file actions
18 lines (14 loc) · 710 Bytes
/
GradeBook
File metadata and controls
18 lines (14 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// In this Python3 Project, you make a gradebook with last year and this year's grades combined into 2D Lists.
// You use .append, .remove and also combine lists together in this project.
last_semester_gradebook = [["politics", 80], ["latin", 96], ["dance", 97], ["architecture", 65]]
# Your code below:
subjects = ["physics", "calculus", "poetry", "history"]
grades = [98, 97, 85, 88]
gradebook = [["physics", 98], ["calculus", 97], ["poetry", 85], ["history", 88]]
gradebook.append(['computer science', 100])
gradebook.append(['visual arts', 93])
gradebook[-1][-1] = 98
(gradebook[2]).remove(85)
(gradebook[2]).append('Pass')
full_gradebook = last_semester_gradebook + gradebook
print(full_gradebook)