-
-
Save BernhardTuft/bd685322074e88fa10d6ba29354f02ad to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = list(map(list, zip(subjects, grades))) | |
gradebook.append(["computer science", 100]) | |
gradebook.append(["visual arts", 93]) | |
gradebook[5][1] += 5 | |
gradebook[2].remove(85) | |
gradebook[2].append("Pass") | |
full_gradebook = gradebook + last_semester_gradebook | |
print(full_gradebook) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment