Computer Science, asked by anilunawane6598, 1 year ago

If the variable data is a python list, how do we sort it in reverse order?

Answers

Answered by madhurjya7880
0

Answer:

Here’s an example:

>>> mylist = [1, 2, 3, 4, 5]

>>> mylist

[1, 2, 3, 4, 5]

>>> mylist.reverse()

None

>>> mylist

[5, 4, 3, 2, 1]

Similar questions