Home
Download App
Study Material
{{ shortTitle }}
Video Lessons
Practice Tests
Ask Doubts
Pricing
JOIN NOW
Computer Science
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[2 : -2] return?
[10, 20, 30, 40]
[20, 30, 40, 50]
[20, 30, 40]
[30, 40, 50]
Python List Manipulation
25 Likes
Answer
[30, 40, 50]
Answered By
8 Likes
Related Questions
If L1 = [1, 3, 5] and L2 = [2, 4, 6] then L1 + L2 will yield
View Answer
Bookmark Now
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[1 : 4] return?
View Answer
Bookmark Now
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[-4 : -1] return?
View Answer
Bookmark Now
Given a list L= [10, 20, 30, 40, 50, 60, 70], what would L[-3 : 99] return?
View Answer
Bookmark Now