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)
gradebook.append(["computer science", 100])
gradebook.append(["visual arts", 93])
#modify the visual arts grade +5
#print(gradebook[-1][-1])
gradebook[-1][-1] = 98
#print(gradebook[-1][-1])
#changing poetry to a pass/fail class
#print(gradebook)
gradebook[2].remove(85)
#print(gradebook)
gradebook[2].append("pass")
#print(gradebook)
full_gradebook = [[last_semester_gradebook]+[gradebook]]
print(full_gradebook)