Please enable JavaScript to use CodeHS

Utah Introducción a Python 1 y 2

Lesson 11.5 Eliminar elementos de la lista

Description

En esta lección, los alumnos aprenderán varias formas de eliminar elementos de una lista existente utilizando los métodos pop y remove y la palabra clave del.


Objective

Students will be able to:

  • Use the pop method with no argument to remove an item from the end of a list
  • Use the pop method to remove an item from a specific index in a list
  • Use the remove method to remove a specific item from a list
  • Use the del keyword to remove an item from a specific index in a list