Remove looks for the value, not the index. But I see where you're going with this. dir(L) and L.pop.__doc__ told me the rest of what I needed to know. Try this:Originally posted by: tfinch2
Why not get the length of the list and only generate a number within bounds?