Computer Science, asked by bikervijay, 3 months ago

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 jai696
1

After L.sort()

[2, 10, 20, 30, 40, 45]

After L.reverse()

[45, 40, 30, 20, 10, 2]

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions