+ 1

How can I do this.!

Suppose I take a list as input containing words How can I print all the words in the list excluding the shortest word

10th Jul 2018, 2:49 PM
B.D
B.D - avatar
6 Réponses
+ 3
#Python inp = input().split() #Splitting input lst = sorted(inp, key = len) #Sorting list from shortest to longest lst.pop(0) #Removing shortest word print(*lst) #Printing every value in lst
10th Jul 2018, 3:02 PM
Mert Yazıcı
Mert Yazıcı - avatar
10th Jul 2018, 3:06 PM
hinanawi
hinanawi - avatar
+ 1
any
10th Jul 2018, 2:57 PM
B.D
B.D - avatar
+ 1
thank you
10th Jul 2018, 3:03 PM
B.D
B.D - avatar
0
which language
10th Jul 2018, 2:57 PM
hinanawi
hinanawi - avatar
0
thank you
10th Jul 2018, 3:07 PM
B.D
B.D - avatar