Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Modifying and Iterating a List

Using List Operations to Modify a List

An append() operation is used to add an element to the end of a list. In programming, "append" means to add to the end. A remove() operation removes the specified element from a list. A pop() operation removes the last item of a list.

Example 1: Simple Operations to Modify a List

The code below demonstrates simple operations for modif...