Please enable JavaScript to use CodeHS

Utah Introducción a Python 1 y 2

Lesson 11.4 Añadir elementos a la lista

Description

En esta lección, los alumnos aprenderán varias formas de añadir elementos a una lista existente mediante los métodos insert, extend y append.


Objective

Students will be able to:

  • Use the append method to add a new item to the end of a list
  • Use the extend method to add new items to the end of a list
  • Use the addition operator (+) to add two lists together
  • Use the insert method to add a new item at a specific index in a list