''' In this exercise we will practice using functions that return multiple values and see how to store multiple values. One common reason to return multiple values with one function is that the outputs require the same input parameters and both output values are always required for our use case. In other cases one of the outputs might be an intermediary output of the final output, but the intermediary is still useful to us. In this example you will work with a function that calculates the perimeter and area of a rectangle. The goal is to help you understand the utility of returning multiple values from a function and how to correctly assign these values to different variables. Exercise A: You are provided with a function `calculate_rectangle` that calculates both the perimeter and area of a rectangle given its length and width. Your task is to call the function, capture the returned values, and correctly assign them to the variables perimeter and area. Print out the results to verify that you have correctly handled the function's output. ''' def calculate_rectangle(length, width): perimeter = 2 * (length + width) area = length * width return perimeter, area # Given parameters length = 5.0 # meters width = 3.0 # meters # Your code here ''' Exercise B: Do the same as in A, but with a slightly different function. ''' def calculate_rectangle_list(length, width): perimeter = 2 * (length + width) area = length * width return [perimeter, area] # Given parameters length = 5.0 # meters width = 3.0 # meters # Your code here