Write a Python program using function concept that maps list of words into a list of integers representing the lengths of the corresponding words 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))