Programming Examples
Python program to find the longest word present in the sentence along with its length
Write a code in Python to enter a sentence and display the longest word present in the sentence along with its length.
Sample Input: WE ARE LEARNING PYTHON
Sample Output: The longest word : LEARNING
The length of the word : 8
Output/ Explanation:
Enter a String :python is very easy language
Longest Word: language
Length of the Word: 8