If the variable data is a python list, how do we sort it in reverse order?
Answers
Answered by
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