Q:

Python Program to Sort Words in Alphabetic Order

0

Program to Sort Words in Alphabetic Order

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

my_str = "Hi this is an example. TutorialsLink Community "

words = [word.lower() for word in my_str.split()]

words.sort()

print("Here are the sorted words:")
for word in words:
   print(word)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now