Keep getting Value error, supposed to remove last item from list.
Would like to see what i'm doing wrong?
states = ['ACTIVE', ['red', 'green', 'blue'],'CANCELLED','FINISHED', 5] states.remove()
Stuart Wright41,073 Points
You need to remove the square brackets.
Your current code is attempting to remove an inner list from within the main list, and such an inner list does not exist. You just need to pass the integer 5 to the remove method.