fork download
  1. a ='apple btc python'
  2. d=sorted(a[::-1])
  3. print(d)
  4. b = a.split()
  5. print(b)
  6. b.sort()
  7. print(b)
  8.  
Success #stdin #stdout 0.02s 9544KB
stdin
Standard input is empty
stdout
[' ', ' ', 'a', 'b', 'c', 'e', 'h', 'l', 'n', 'o', 'p', 'p', 'p', 't', 't', 'y']
['apple', 'btc', 'python']
['apple', 'btc', 'python']