Run
string = 'apple' chars = list(string) chars.sort(reverse = True) sorted_string = ''.join(chars) print(sorted_string)
Output