I am new to python and am trying to create a copy of a list without a certain element. This is how I am doing it at the moment:
oldList[1,23,4,3,5,345,4]
newList = oldList[:]
del newList[3]
doSomthingToList(newList)
I was wondering if there is a better more eloquent way to do this, instead of copying the list and then deleting the element in two lines?