Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@BernhardTuft
Forked from codecademydev/script.py
Created January 17, 2024 09:03
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 BernhardTuft/bd685322074e88fa10d6ba29354f02ad to your computer and use it in GitHub Desktop.
Save BernhardTuft/bd685322074e88fa10d6ba29354f02ad to your computer and use it in GitHub Desktop.
Codecademy export
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