Remove Specified Item
The remove() method removes the first matching element (which is passed as an argument) from the list.
create a list
prime_numbers = [2, 3, 5, 7, 9, 11]
remove 9 from the list
prime_numbers.remove(9)
Updated prime_numbers List
print('Updated List: ', prime_numbers)
Output: Updated List: [2, 3, 5, 7, 11]
Nesta página do site você pode assistir ao vídeo on-line Python - Remove List Items duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Developers Vision 03 Julho 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 6 vezes e gostou 0 espectadores. Boa visualização!