Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created March 15, 2020 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/0a7143fdb745d8d7704f8aaea499bd12 to your computer and use it in GitHub Desktop.
Save codecademydev/0a7143fdb745d8d7704f8aaea499bd12 to your computer and use it in GitHub Desktop.
Codecademy export
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