Like to use reverse sort in command its: variable.sort(reverse=True) but this is permanent.
The sorted command is only temporary such as: print(sorted(variable)) so how do I make that one in reverse?
Like to use reverse sort in command its: variable.sort(reverse=True) but this is permanent.
The sorted command is only temporary such as: print(sorted(variable)) so how do I make that one in reverse?
Simple one :)
sorted(your_list, reverse=True)