## 1. What Is a List?

• Well… Python list is a list of Python objects!
a_list = [2, 3, 3, 'stat']

## 2. Elements of a List

• Use square bracket [] to access element(s) of a list.
a_list[0]
## 2
• We can also access multiple elements at once!
a_list[0:2]
## [2, 3]
• Now, what’s if we want to get the first letter of the string at index 3?
a_list[3][0]
## 's'

## 3. Modifying a List

• Replace an object at a specific position with another object.
a_list[0] = 'hello'
a_list
## ['hello', 3, 3, 'stat']

• We can also add new elements to a list! You will learn that in Lab 03!