Run
mystring = 'apple' mystring_sorted = sorted(mystring) print(mystring_sorted)
Output