[py]
[/py]
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]]
gradebook.append([“computer science”, 100])
gradebook.append([“visual arts”, 93])
gradebook[-1][1] += 5
“”"Stuck here:
gradebook = [[“physics”, 98], [“calculus”, 97], [“poetry”, 85], [“history”, 88]]
You decided to switch from a numerical grade value to a Pass/Fail option for your poetry class.
Find the grade value in your gradebook for your poetry class and use the .remove() method to delete it. “”"
gradebook.remove([2][1]) How can I remove the second element from a 2d list?
full_gradebook = gradebook + last_semester_gradebook
print (full_gradebook)