Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort a string in python

#Sorted function returns the string as a list which we are converting to a string again using join
new_str=''.join(sorted(old_str))
 
PREVIOUS NEXT
Tagged: #sort #string #python
ADD COMMENT
Topic
Name
3+1 =