a ='apple btc python'd=sorted(a[::-1])print(d)b = a.split()print(b)b.sort()print(b)
Standard input is empty
[' ', ' ', 'a', 'b', 'c', 'e', 'h', 'l', 'n', 'o', 'p', 'p', 'p', 't', 't', 'y'] ['apple', 'btc', 'python'] ['apple', 'btc', 'python']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!