Lists Are MutableLists Are Mutable

Lists are a mutable data structure. That is, we can change, delete, move, and add a list element. We can also replace one item in the list with multiple items.

Task

You have the list [2, 4, 8, 64, 1024]. You need to change the last item to 5 and the first item to 0.

Everything was clear?

Section 1. Chapter 7
toggle bottom row