Split method link: • 137. String Rindex and Split Method in Pyt...
Lower method link: • 131. String Lower and Rjust Method in Pyth...
Code:
my_str='Permutation means arrangement and combination means selection of objects'
#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)
On this page of the site you can watch the video online 194. How to Sort Words in Alphabetical Order in Python with Code || Python Loop, Strings and Methods with a duration of hours minute second in good quality, which was uploaded by the user Bhavatavi 29 October 2022, share the link with friends and acquaintances, this video has already been watched 23 times on youtube and it was liked by 0 viewers. Enjoy your viewing!