I am stuck at lines lines 14 to 17 in my code
Link
https://www.codecademy.com/courses/learn-python-3/projects/python-gradebook
When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer! 
https://www.codecademy.com/courses/learn-python-3/projects/python-gradebook
In the code above, the list ["poetry, 85"]
is in the gradebook
list, but the string "poetry, 85"
is not.
So change:
gradebook.remove("poetry, 85")
to
gradebook.remove(["poetry, 85"])
Also, "poetry, 85"
is not in the subjects
list.
So maybe
subjects.remove("poetry, 85")
should be
subjects.remove("poetry")
I tried your suggestions and it worked out for me. Thank you so much for your time.
1 Like
I implemented the changes and got my project back on the rails. Thank you so much for time.
| janbazant1107978602
March 3 |
In the code above, the list ["poetry, 85"]
is in the gradebook
list, but the string "poetry, 85"
is not.
So change:
gradebook.remove("poetry, 85")
to
gradebook.remove(["poetry, 85"])