Lab01_WriteUp
Question 1 Question 1a Write a function summation that evaluates the following summation for $n \geq 1$:
$$\sum_{i=1}^{n} i^3 + 3 i^2$$
1 2 3 4 def summation(n): """Compute the summation i^3 + 3 * i^2 for 1 <= i <= n.""" ... return sum(i**3+3*i**2 for i in range(1,n+1)) Question 1b Write a function elementwise_list_sum that computes the square of each value in list_1, the cube of each value in list_2, then returns a list containing the element-wise sum of these results.