Sort a str

Report a typo

Write a program to turn a string into a list and sort it in descending order. The input value is a str, the output should be a list. For example, if the input is Alice, your output must be ['l', 'i', 'e', 'c', 'a'].

Sample Input 1:

python

Sample Output 1:

['y', 't', 'p', 'o', 'n', 'h']
Write a program in Python 3





___

Create a free account to access the full topic