Python Gradebook Help


Looking for help on the gradebook project for the python path. I’m on step 9 and when I try to run the code I get the following error:

Traceback (most recent call last):
File “”, line 23, in
gradebook[2].append = (“Pass”)
AttributeError: ‘list’ object attribute ‘append’ is read-only

The instructions seem to be asking for us to access the sublist and remove 85 then in the next step access the same sublist to add the value “Pass” back in but it keeps throwing the same error. I’ve reviewed other solutions and I’m not sure where I’m going wrong.

As .append() is a method, you need to format it correctly for it to work. As you have done it correctly further up in the code I assume you just made a type, however in

gradebook[2].append = (“Pass”)

There should not be any = sign. I believe that will fix your issue.


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.