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[1 : 4] return?
[10, 20, 30, 40]
[20, 30, 40, 50]
[20, 30, 40]
[30, 40, 50]
Python List Manipulation
30 Likes
Answer
[20, 30, 40]
Answered By
9 Likes
Related Questions
If L = [1, 2] then L * 2 will yield
View Answer
Bookmark Now
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[2 : -2] 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