Solution Exercise 65: Python algorithm which replaces the words in a list with their lengths.
Exercise 65 Given a list of strings, write a Python algorithm allowing which replace the elements of the list with their lengths. Example: if L = ["Python", "Django", "Numpy", "Sympy"]…