my_array = [5, 2, 8, 1, 9] sorted_array = sorted(my_array) print(sorted_array)
Standard input is empty
[1, 2, 5, 8, 9]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!