Mega Code Archive
Categories
/
Python Tutorial
/
List
The list should be sorted in reverse
x = [4, 6, 2, 1, 7, 9] x.sort(reverse=True) print x