Study Material
Computer Science
Which of the following will return the last element of a list L with 5 elements?
L[5]
L[4]
L[-1]
L[6]
Python List Manipulation
18 Likes
Answer
L[4]
L[-1]
Answered By
1 Like
Related Questions
List can contain values of these types:
View Answer
Bookmark Now
Which of the following will create an empty list?
View Answer
Bookmark Now
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