Had the same problem. idk if its right but it works on my code
grades = { "lance": [1, 2, 3], "nate": [1, 2, 3] } index = 0 arr = list(grades) str = arr[index] grades.pop(str) print(grades)