Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python alphabetical order

my_str = "you can just put in word in one sentence like this"
my_str = input("Enter a string: ")
words = [word.lower() for word in my_str.split()]
words.sort()
print("The sorted words are:")
for word in words:
   print(word)
 
PREVIOUS NEXT
Tagged: #python #alphabetical #order
ADD COMMENT
Topic
Name
4+8 =