3. List comprehensions. In Python
, it is possible to loop over all of the elements of a list using
something called a list comprehension. The syntax is given below for code that loops over each element of list_of_numbers
and computes each element's square root.
list_of_sqrts = [sqrt(number) for number in list_of_numbers]
Use a list comprehension to loop over the elements of list_of_numbers
and divide each by 5.0.