python delete an element in list function code example Example: delete item from list listname.remove(element)