I completely agree that the list comrehension is beter than filter+lamda.  I usually do that and I wonder why I didn't.

The code worked probably because `list.__setitem__` turns an iterator to a list.