Write the output of the following code:
L=[10,45,2,20,40,30]
L.sort()
print(L)
L.reverse()
print(L)
Answers
Answered by
1
After L.sort()
[2, 10, 20, 30, 40, 45]
After L.reverse()
[45, 40, 30, 20, 10, 2]
Similar questions