del listas python code example
Example 1: del list python
>>> a=[1,2,3]
>>> a.remove(2)
>>> a
[1, 3]
>>> a=[1,2,3]
>>> del a[1]
>>> a
[1, 3]
>>> a= [1,2,3]
>>> a.pop(1)
2
>>> a
[1, 3]
>>>
Example 2: maior valor lista python
lista = [13, 7, 5, 4, 6, 19, 6]
maior = max(lista)
menor = min(lista)