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 sort the elements of list L1 in ascending order.
One Word/Term Answer
Solution
L1.sort()
shaalaa.com
Is there an error in this question or solution?