0
How to reverse the list .
Is it sort.(reverse=true)
8 ответов
+ 8
In python, you can reverse and sort a list by simply typing List.sort(reverse=True) or VariableName=sorted(List, reverse=True)
+ 2
In which language do u want? Please mention it in the question.
+ 2
You are most welcome!
+ 1
Thank you bro
+ 1
a = [1,2,3]
rev_a = a[::-1]
print(rev_a)
0
the language
- 1
Thanks for your reactions
- 1
in Python just write
list_name = listname[::-1]