# PCEP-30-02 — Question 605

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

## Question

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

## Correct Answer

_See scenario._

## Explanation

Selected Answer: C
Let's break down this code:

nums = [3, 4, 5, 20, 5, 25, 1, 3] creates a list of integers.
nums.pop(1) removes the element at index 1 from the list and returns it. In this case, it removes the number 4.
The pop() method modifies the original list by removing the specified element.
print(nums) then prints the modified list.

After pop(1), the list nums becomes [3, 5, 20, 5, 25, 1, 3].

**Reference:** examtopics_top_comment

---
Source: https://hiexam.net/q/python-institute/PCEP-30-02/605  
Practice (tracked): https://hiexam.net/study/PCEP-30-02/practice