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'].
sort() under the hood
Sort a str
Report a typo
Sample Input 1:
pythonSample Output 1:
['y', 't', 'p', 'o', 'n', 'h']Write a program in Python 3
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.