lista = [ '2', '10' ]print(sorted(lista)) # ['10', '2'] lista = [ 'b', 'ac' ]print(sorted(lista)) # ['ac', 'b']
Standard input is empty
['10', '2'] ['ac', 'b']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!