-2
I own a dictionary called alunos, that works by relating a student’s name to a list of grades, for example:
alunos = {'Fulano': [2, 4, 10, 5.5]}
I need to delete the first value from this list, having the student’s name as a parameter but I can’t do this operation.
Another option (which I think is even simpler) is
alunos['Fulano'].pop(0)– hkotsubo
You can also use
del alunos['Fulano'][0]– Augusto Vasques