nerdexam
Python_Institute

PCEP-30-02 · Question #368

Take a look at the snippet, and choose the true statements: (Choose two.) nums = [1, 2, 3] vals = nums del vals[1:2]

The correct answer is B. nums and vals are of the same length D. nums and vals refer to the same list. See the full explanation below for the reasoning.

Question

Take a look at the snippet, and choose the true statements: (Choose two.) nums = [1, 2, 3] vals = nums del vals[1:2]

Options

  • Anums is longer than vals
  • Bnums and vals are of the same length
  • Cvals is longer than nums
  • Dnums and vals refer to the same list

How the community answered

(17 responses)
  • A
    6% (1)
  • B
    76% (13)
  • C
    18% (3)

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice