Created
February 9, 2024 06:32
-
-
Save joao141141/f998f173833910f1ad047983cc813614 to your computer and use it in GitHub Desktop.
gradebook(exercise)
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 = [[subjects[0], grades[0]], [subjects[1], grades[1]], [subjects[2], grades[2]], [subjects[3], grades[3]]] | |
gradebook.append(['computer science', 100]) | |
gradebook.append(['visual arts', 93]) | |
gradebook[5][1] = 98 | |
gradebook[2].remove(grades[2]) | |
gradebook[2].append("Pass") | |
full_gradebook = last_semester_gradebook + gradebook | |
print(full_gradebook) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment