KnowledgeBoat Logo

Computer Science

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

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

Python List Manipulation

18 Likes

Answer

[40, 50, 60]

Answered By

2 Likes


Related Questions