今さらPython
#!/usr/bin/env python q = [ 3,6,2,9,4,8 ] print(q) print(sorted(q)) print(sorted(q, reverse=True))
$ test11.py [3, 6, 2, 9, 4, 8] [2, 3, 4, 6, 8, 9] $