For this one I kept getting an error when I defined the labels in a plt.legend() method instead of the plt.pie() one. Strangely, it kept complaining about my autopct definition, which I left untouched.
Is this an error with the validation of the response or is it actually wrong to define the labels with plt.legend() after we added the pie charts?
I tried it, and it appears differently (as follows) than the expected result.
Though this is not the expected result for this exercise, I think that this way is also appropriate depending on a purpose, so I don’t think it is wrong.
Perhaps the reason for the message about autopct is that the Codecademy system has determined that another task (“put a percentage label on each slice”) has not yet been done.