# PCAP-31-03 — Question 604

**Type:** multiple_choice
**Topics:** topic_1

## Question

What is the expected behavior of the following code?
//IMG//

## Correct Answer

_See scenario._

## Explanation

D tested:

my_list = [1, 2, 3]

try:
 my_list[3] = my_list[2]
except BaseException as error:
 print(error)

**Reference:** examtopics_top_comment

---
Source: https://hiexam.net/q/python-institute/PCAP-31-03/604  
Practice (tracked): https://hiexam.net/study/PCAP-31-03/practice