Python beginner just wondering why is it you're not able to pop() an item from a list by using it's value within a list, instead having to know it's index?
e.g.
colours = ["blue", "purple"]
colour_1 = colours.pop(0)
print(colour_1)
Why could I not instead write
colour_1 = colours.pop("blue")
Maybe a dumb question, but I was curious about this and I'm pretty new, thanks :)