Please enable JavaScript to use CodeHS

Utah Introduction to Python 2

Lesson 2.4 Adding List Elements

Description

In this lesson, students learn various ways to add items to an existing list with the use of the insert, extend, and append methods.


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