Reversed and Sorted Iteration : reversed « Buildin Function « Python Tutorial






print sorted([4, 3, 6, 8, 3])
print sorted('Hello, world!')
print list(reversed('Hello, world!'))
print ''.join(reversed('Hello, world!'))








13.41.reversed
13.41.1.Reversed and Sorted Iteration
13.41.2.sorted() and reversed()