Chapter 7: Problem 11
What will the following code display? numbers = [1, 2, 3, 4, 5] my_list = numbers[:1] print(my_list)
Short Answer
Expert verified
```python
numbers = [1, 2, 3, 4, 5]
my_list = numbers[:1]
print(my_list)
```
Answer: The code will display `[1]` when executed.