Hello everyone, I’m new to programming and trying to learn at my own pace. I have been stuck on the gradebook exercise and I can’t seem to figure out what the issue is, this is the code so far:
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 = [["physics", 98], ["calculus", 97], ["poetry", 85], ["history", 88]]
print(gradebook)
subjects.append("computer science")
print(subjects)
gradebook.append(100)
print(gradebook)
When it prints the gradebook I can’t figure out why in the list it’s only showing the grade for computer science and I tried to figure out why but no luck, any suggestions? Thanks a lot
[['physics', 98], ['calculus', 97], ['poetry', 85], ['history', 88]]
['physics', 'calculus', 'poetry', 'history', 'computer science']
[['physics', 98], ['calculus', 97], ['poetry', 85], ['history', 88], 100]