18. Write the python program that takes a list of given words and returns the length of the longest one. code example
Example: Write a Python program using function concept that maps list of words into a list of integers representing the lengths of the corresponding words
listOfWords = input('List of Word: ').split()
listOfInts = []
for i in range(len(listOfWords)):
listOfInts.append(len(listOfWords[i]))
print ("List of wordlength:"+str(listOfInts))