Advertisements
Advertisements
Question
If L1 = [1, 2, 3, 2, 1, 2, 4, 2, . . . ], and L2 = [10, 20, 30, . . .], then
(Answer using builtin function only)
Write a statement to reverse the elements of list L2.
One Word/Term Answer
Solution
L2.reverse()
shaalaa.com
Is there an error in this question or solution?