Today we are going to share a Python Program to Read a List of Words and Return the Length of the Longest One. If you are a python beginner and want to start learning the python programming, then keep your close attention in this tutorial as I am going to share a Python Program to Read a List of Words and Return the Length of the Longest One.
To increase your Python knowledge, practice all Python programs, here is a collection of 100+ Python problems with solutions.
Copy the below python program and execute it with the help of python compiler.
n= int(input("Enter the number of elements in list:"))
for x in range(0,n):
element=input("Enter element" + str(x+1) + ":")
for i in a:
print("The word with the longest length is:")
Enter the number of elements in list:3
The word with the longest length is: