list python remove element by index code example Example 1: delete element list python list.remove(element) Example 2: delete item from list listname.remove(element)