Computer Science, asked by rajasarvesh, 6 months ago

write a program to input a line of text and print the longest word from it python​

Answers

Answered by shikhasingh7089
0

Answer:

In this program, first we read sentence from user then we use string split ( ) function to convert it to list. after splitting it is passed to max ( ) function with keyword argument key = len which return longest word from sentence.

Explanation:

I hope it will help you

Similar questions