Mega Code Archive
Categories
/
Python Tutorial
/
List
The sort method is used to sort lists in place
x = [4, 6, 2, 1, 7, 9] x.sort() print x