write a program to input a line of text and print the longest word from it python
Answers
Answered by
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
Social Sciences,
3 months ago
English,
3 months ago
Math,
3 months ago
English,
6 months ago
Social Sciences,
6 months ago
Geography,
11 months ago