a ='pple btc python'b = a.split()print(b)b.sort()print(b)
Standard input is empty
['pple', 'btc', 'python'] ['btc', 'pple', 'python']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!