Computer Science

Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[2 : -2] return?

  1. [10, 20, 30, 40]
  2. [20, 30, 40, 50]
  3. [20, 30, 40]
  4. [30, 40, 50]

Python List Manipulation

25 Likes

Answer

[30, 40, 50]

Answered By

8 Likes


Related Questions