-
-
Save codecademydev/0a7143fdb745d8d7704f8aaea499bd12 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)] | |
subjects = ['physics', 'calculus', 'poetry', 'history'] | |
grades = [98, 97, 85, 88] | |
subjects.append('computer science') | |
grades.append(100) | |
gradebook = zip(subjects, grades) | |
gradebook.append(('visual arts', 93) | |
full_gradebook = gradebook + last_semester_gradebook | |
print (list(full_gradebook)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment