Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to make a string alphabetic

a_string = "cba"
sorted_characters = sorted(a_string)
a_string = "".join(sorted_characters)
print(a_string)
#output is abc
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #string #alphabetic
ADD COMMENT
Topic
Name
1+4 =