In this program, we will take a string as input and sort the string.
Steps to solve the program
- Take a string as input.
- Sort the string using sorted().
- Print the output.
#Input string
string="xyabkmp"
#Printing output
print("".join(sorted(string)))
Output :
'abkmpxy'