Answers for "can you sort a string in python"

-1

python sort list string

# s = list with strings
s.sort(key=str.lower)
Posted by: Guest on March-26-2021
0

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))
Posted by: Guest on July-21-2021

Code answers related to "can you sort a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language