194. How to Sort Words in Alphabetical Order in Python with Code || Python Loop, Strings and Methods

Publié le: 29 octobre 2022
sur la chaîne: Bhavatavi
23
0

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)


Sur cette page du site, vous pouvez voir la vidéo en ligne 194. How to Sort Words in Alphabetical Order in Python with Code || Python Loop, Strings and Methods durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Bhavatavi 29 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 23 fois et il a aimé 0 téléspectateurs. Bon visionnage!