Computer Science, asked by piyushsrivastava78, 15 days ago

Write a Python Program to find the 2nd smallest word in an accepted string without using def. Use minimum functions

Answers

Answered by samarthkrv
0

Answer:

s = input("Enter a string:")

words = list(s.split(" "))

words.sort(key=len)

print("The second smallest word is" , words[1])

Explanation:

Similar questions